forked from OSchip/llvm-project
clang-cl: Ignore the new /Zo[-] option (PR21571)
Also fix the ignored options test which didn't fail properly on unknown options. llvm-svn: 222013
This commit is contained in:
parent
94812216ef
commit
05d50a9645
|
@ -197,6 +197,7 @@ def _SLASH_TP : CLCompileFlag<"TP">, HelpText<"Treat all source files as C++">;
|
|||
// Ignored:
|
||||
|
||||
def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;
|
||||
def _SLASH_d2Zi_PLUS : CLIgnoredFlag<"d2Zi+">;
|
||||
def _SLASH_errorReport : CLIgnoredJoined<"errorReport">;
|
||||
def _SLASH_FS : CLIgnoredFlag<"FS">, HelpText<"Force synchronous PDB writes">;
|
||||
def _SLASH_GF : CLIgnoredFlag<"GF">;
|
||||
|
@ -214,6 +215,8 @@ 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_Zm : CLIgnoredJoined<"Zm">;
|
||||
def _SLASH_Zo : CLIgnoredFlag<"Zo">;
|
||||
def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
|
||||
|
||||
|
||||
// Unsupported:
|
||||
|
@ -221,7 +224,6 @@ def _SLASH_Zm : CLIgnoredJoined<"Zm">;
|
|||
def _SLASH_AI : CLJoined<"AI">;
|
||||
def _SLASH_bigobj : CLFlag<"bigobj">;
|
||||
def _SLASH_clr : CLJoined<"clr">;
|
||||
def _SLASH_d2Zi_PLUS : CLFlag<"d2Zi+">;
|
||||
def _SLASH_doc : CLJoined<"doc">;
|
||||
def _SLASH_FA_joined : CLJoined<"FA">;
|
||||
def _SLASH_favor : CLJoined<"favor">;
|
||||
|
|
|
@ -172,6 +172,7 @@
|
|||
// (/Zs is for syntax-only)
|
||||
// RUN: %clang_cl /Zs \
|
||||
// RUN: /analyze- \
|
||||
// RUN: /d2Zi+ \
|
||||
// RUN: /errorReport:foo \
|
||||
// RUN: /FS \
|
||||
// RUN: /GF \
|
||||
|
@ -190,8 +191,11 @@
|
|||
// RUN: /Zc:wchar_t \
|
||||
// RUN: /Zc:inline \
|
||||
// RUN: /Zc:rvalueCast \
|
||||
// RUN: /Zo \
|
||||
// RUN: /Zo- \
|
||||
// RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s
|
||||
// IGNORED-NOT: argument unused during compilation
|
||||
// IGNORED-NOT: no such file or directory
|
||||
|
||||
// Ignored options and compile-only options are ignored for link jobs.
|
||||
// RUN: touch %t.obj
|
||||
|
@ -210,7 +214,6 @@
|
|||
// RUN: /AIfoo \
|
||||
// RUN: /clr:pure \
|
||||
// RUN: /docname \
|
||||
// RUN: /d2Zi+ \
|
||||
// RUN: /EHsc \
|
||||
// RUN: /F \
|
||||
// RUN: /FA \
|
||||
|
|
Loading…
Reference in New Issue