]> granicus.if.org Git - clang/commitdiff
clang-cl : Parse all /d2 options
authorHans Wennborg <hans@hanshq.net>
Fri, 8 Mar 2019 10:00:42 +0000 (10:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 8 Mar 2019 10:00:42 +0000 (10:00 +0000)
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

include/clang/Driver/CLCompatOptions.td
test/Driver/cl-options.c

index 2ac03b373e4e1a992e30e4de8ee454c68ec1015a..d678464a5cbe0bc861e7578c5c4addb667b01bf6 100644 (file)
@@ -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">;
index 33b1575a511b57d2cb6cbc099172e7ea4387a7e2..756cce1c24e28f0dbe5d8d0883f2b02c4ea266e1 100644 (file)
 // RUN:     /Bt \
 // RUN:     /Bt+ \
 // RUN:     /clr:pure \
+// RUN:     /d2FH4 \
 // RUN:     /docname \
 // RUN:     /EHsc \
 // RUN:     /F \