Skip to content

Commit 60c0551

Browse files
committed
Merging r355489:
------------------------------------------------------------------------ r355489 | hans | 2019-03-06 10:38:04 +0100 (Wed, 06 Mar 2019) | 1 line clang-cl: Parse /Qspectre and a few other missing options (PR40964) ------------------------------------------------------------------------ llvm-svn: 355677
1 parent 2a1c7bd commit 60c0551

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

clang/include/clang/Driver/CLCompatOptions.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
395395

396396
// Unsupported:
397397

398+
def _SLASH_await : CLFlag<"await">;
399+
def _SLASH_constexpr : CLJoined<"constexpr:">;
398400
def _SLASH_AI : CLJoinedOrSeparate<"AI">;
399401
def _SLASH_Bt : CLFlag<"Bt">;
400402
def _SLASH_Bt_plus : CLFlag<"Bt+">;
@@ -430,6 +432,9 @@ def _SLASH_Qfast_transcendentals : CLFlag<"Qfast_transcendentals">;
430432
def _SLASH_QIfist : CLFlag<"QIfist">;
431433
def _SLASH_Qimprecise_fwaits : CLFlag<"Qimprecise_fwaits">;
432434
def _SLASH_Qpar : CLFlag<"Qpar">;
435+
def _SLASH_Qpar_report : CLJoined<"Qpar-report">;
436+
def _SLASH_Qsafe_fp_loads : CLFlag<"Qsafe_fp_loads">;
437+
def _SLASH_Qspectre : CLFlag<"Qspectre">;
433438
def _SLASH_Qvec_report : CLJoined<"Qvec-report">;
434439
def _SLASH_u : CLFlag<"u">;
435440
def _SLASH_V : CLFlag<"V">;

clang/test/Driver/cl-options.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@
390390
// Unsupported but parsed options. Check that we don't error on them.
391391
// (/Zs is for syntax-only)
392392
// RUN: %clang_cl /Zs \
393+
// RUN: /await \
394+
// RUN: /constexpr:depth1000 /constexpr:backtrace1000 /constexpr:steps1000 \
393395
// RUN: /AIfoo \
394396
// RUN: /AI foo_does_not_exist \
395397
// RUN: /Bt \
@@ -443,6 +445,9 @@
443445
// RUN: /QIfist \
444446
// RUN: /Qimprecise_fwaits \
445447
// RUN: /Qpar \
448+
// RUN: /Qpar-report:1 \
449+
// RUN: /Qsafe_fp_loads \
450+
// RUN: /Qspectre \
446451
// RUN: /Qvec-report:2 \
447452
// RUN: /u \
448453
// RUN: /V \

0 commit comments

Comments
 (0)