[clang] 4178671 - [clang][Windows]Ignore Options '/d1'

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 3 06:48:55 PST 2022


Author: qfrost
Date: 2022-12-03T22:47:59+08:00
New Revision: 4178671b2ed3d8c1ffec6f723808e22572601242

URL: https://github.com/llvm/llvm-project/commit/4178671b2ed3d8c1ffec6f723808e22572601242
DIFF: https://github.com/llvm/llvm-project/commit/4178671b2ed3d8c1ffec6f723808e22572601242.diff

LOG: [clang][Windows]Ignore Options '/d1'

Added: 
    

Modified: 
    clang/include/clang/Driver/Options.td
    clang/test/Driver/cl-options.c

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 5d7305f2af76..11f6253db744 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -6932,6 +6932,7 @@ def _SLASH_AI : CLJoinedOrSeparate<"AI">;
 def _SLASH_Bt : CLFlag<"Bt">;
 def _SLASH_Bt_plus : CLFlag<"Bt+">;
 def _SLASH_clr : CLJoined<"clr">;
+def _SLASH_d1 : CLJoined<"d1">;
 def _SLASH_d2 : CLJoined<"d2">;
 def _SLASH_doc : CLJoined<"doc">;
 def _SLASH_experimental : CLJoined<"experimental:">;

diff  --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index b4525e61a1a3..1d588bdfc1b0 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -426,6 +426,8 @@
 // RUN:     /Bt \
 // RUN:     /Bt+ \
 // RUN:     /clr:pure \
+// RUN:     /d1import_no_registry \
+// RUN:     /d1nodatetime \
 // RUN:     /d2FH4 \
 // RUN:     /docname \
 // RUN:     /experimental:external \


        


More information about the cfe-commits mailing list