clang-cl: Parse /openmp:experimental
authorHans Wennborg <hans@hanshq.net>
Wed, 17 Apr 2019 10:05:58 +0000 (10:05 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 17 Apr 2019 10:05:58 +0000 (10:05 +0000)
It was added to the MS docs recently here:
https://github.com/MicrosoftDocs/cpp-docs/commit/3951085ab722fbb488ca40864f4a0553f7b71855

llvm-svn: 358570

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

index de1f761..6fb91fd 100644 (file)
@@ -428,6 +428,7 @@ def _SLASH_kernel : CLFlag<"kernel">;
 def _SLASH_LN : CLFlag<"LN">;
 def _SLASH_MP : CLJoined<"MP">;
 def _SLASH_openmp : CLFlag<"openmp">;
+def _SLASH_openmp_experimental : CLFlag<"openmp:experimental">;
 def _SLASH_Qfast_transcendentals : CLFlag<"Qfast_transcendentals">;
 def _SLASH_QIfist : CLFlag<"QIfist">;
 def _SLASH_Qimprecise_fwaits : CLFlag<"Qimprecise_fwaits">;
index e69328d..c40f7d3 100644 (file)
 // RUN:     /o foo.obj \
 // RUN:     /ofoo.obj \
 // RUN:     /openmp \
+// RUN:     /openmp:experimental \
 // RUN:     /Qfast_transcendentals \
 // RUN:     /QIfist \
 // RUN:     /Qimprecise_fwaits \