Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
clang-cl : Parse all /d2 options
Browse files Browse the repository at this point in the history
We will now warn about such options being unused,
which is better than the current
"no such file or directory: '/d2foo'" errors.

Note that we can still handle specific flags separately,
e.g. we were already ignoring /d2FastFail and /d2Zi+

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355682 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
zmodem committed Mar 8, 2019
1 parent 2df582c commit b44a5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/clang/Driver/CLCompatOptions.td
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def _SLASH_AI : CLJoinedOrSeparate<"AI">;
def _SLASH_Bt : CLFlag<"Bt">;
def _SLASH_Bt_plus : CLFlag<"Bt+">;
def _SLASH_clr : CLJoined<"clr">;
def _SLASH_d2 : CLJoined<"d2">;
def _SLASH_doc : CLJoined<"doc">;
def _SLASH_FA_joined : CLJoined<"FA">;
def _SLASH_favor : CLJoined<"favor">;
Expand Down
1 change: 1 addition & 0 deletions test/Driver/cl-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
// RUN: /Bt \
// RUN: /Bt+ \
// RUN: /clr:pure \
// RUN: /d2FH4 \
// RUN: /docname \
// RUN: /EHsc \
// RUN: /F \
Expand Down

0 comments on commit b44a5ed

Please sign in to comment.