Skip to content

Commit

Permalink
[clang-cl] Ignore /Zc:ternary, clang behaves this way already
Browse files Browse the repository at this point in the history
Addresses part of PR33237

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304303 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed May 31, 2017
1 parent 2bb177b commit f9df99d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/clang/Driver/CLCompatOptions.td
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
def _SLASH_Zc_inline : CLIgnoredFlag<"Zc:inline">;
def _SLASH_Zc_rvalueCast : CLIgnoredFlag<"Zc:rvalueCast">;
def _SLASH_Zc_wchar_t : CLIgnoredFlag<"Zc:wchar_t">;
def _SLASH_Zc_ternary : CLIgnoredFlag<"Zc:ternary">;
def _SLASH_Zm : CLIgnoredJoined<"Zm">;
def _SLASH_Zo : CLIgnoredFlag<"Zo">;
def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
Expand Down
5 changes: 5 additions & 0 deletions test/Driver/cl-zc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
// RUN: %clang_cl /c -### /Zc:inline- -- %s 2>&1 | FileCheck -check-prefix=INLINE-OFF %s
// INLINE-OFF: argument unused during compilation

// RUN: %clang_cl /c -### /Zc:ternary -- %s 2>&1 | FileCheck -check-prefix=TERNARY-ON %s
// TERNARY-ON-NOT: argument unused during compilation
// RUN: %clang_cl /c -### /Zc:ternary- -- %s 2>&1 | FileCheck -check-prefix=TERNARY-OFF %s
// TERNARY-OFF: argument unused during compilation


// These never warn, but don't have an effect yet.

Expand Down

0 comments on commit f9df99d

Please sign in to comment.