From: Hans Wennborg Date: Fri, 8 Mar 2019 10:00:42 +0000 (+0000) Subject: clang-cl : Parse all /d2 options X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b44a5edecf19653a9fe2467ec719746b63ff9d05;p=clang 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+ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355682 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 2ac03b373e..d678464a5c 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/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/test/Driver/cl-options.c b/test/Driver/cl-options.c index 33b1575a51..756cce1c24 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -397,6 +397,7 @@ // RUN: /Bt \ // RUN: /Bt+ \ // RUN: /clr:pure \ +// RUN: /d2FH4 \ // RUN: /docname \ // RUN: /EHsc \ // RUN: /F \