summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-03-08 10:00:42 +0000
committerHans Wennborg <hans@hanshq.net>2019-03-08 10:00:42 +0000
commit64852e901a54822c837e5279f4f5af74b98dcedf (patch)
tree5d1fd856facecdc2a339f0d316cc3fe524986987
parent890dfddef0f94c71e76f2451b1fa443ae1f0e339 (diff)
downloadbcm5719-llvm-64852e901a54822c837e5279f4f5af74b98dcedf.tar.gz
bcm5719-llvm-64852e901a54822c837e5279f4f5af74b98dcedf.zip
clang-cl : Parse all /d2 options
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+ llvm-svn: 355682
-rw-r--r--clang/include/clang/Driver/CLCompatOptions.td1
-rw-r--r--clang/test/Driver/cl-options.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/CLCompatOptions.td b/clang/include/clang/Driver/CLCompatOptions.td
index 2ac03b373e4..d678464a5cb 100644
--- a/clang/include/clang/Driver/CLCompatOptions.td
+++ b/clang/include/clang/Driver/CLCompatOptions.td
@@ -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">;
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index 33b1575a511..756cce1c24e 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -397,6 +397,7 @@
// RUN: /Bt \
// RUN: /Bt+ \
// RUN: /clr:pure \
+// RUN: /d2FH4 \
// RUN: /docname \
// RUN: /EHsc \
// RUN: /F \
OpenPOWER on IntegriCloud