[clang] 64dbd64 - [clang-cl] Parse /await:strict, new in MSVC 16.10
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 9 05:27:15 PDT 2021
Author: Hans Wennborg
Date: 2021-06-09T14:27:05+02:00
New Revision: 64dbd649cf661cbca5e8670d220aec40d6892572
URL: https://github.com/llvm/llvm-project/commit/64dbd649cf661cbca5e8670d220aec40d6892572
DIFF: https://github.com/llvm/llvm-project/commit/64dbd649cf661cbca5e8670d220aec40d6892572.diff
LOG: [clang-cl] Parse /await:strict, new in MSVC 16.10
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 bae7426bc64e3..55391cf2dac1d 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -6200,6 +6200,7 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
// Unsupported:
def _SLASH_await : CLFlag<"await">;
+def _SLASH_await_COLON : CLJoined<"await:">;
def _SLASH_constexpr : CLJoined<"constexpr:">;
def _SLASH_AI : CLJoinedOrSeparate<"AI">;
def _SLASH_Bt : CLFlag<"Bt">;
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index f60c2b6147022..d1bd6f5146b4d 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -420,6 +420,7 @@
// (/Zs is for syntax-only)
// RUN: %clang_cl /Zs \
// RUN: /await \
+// RUN: /await:strict \
// RUN: /constexpr:depth1000 /constexpr:backtrace1000 /constexpr:steps1000 \
// RUN: /AIfoo \
// RUN: /AI foo_does_not_exist \
More information about the cfe-commits
mailing list