forked from OSchip/llvm-project
clang-cl: Make -W a core option so we can adjust clang warnings.
llvm-svn: 189882
This commit is contained in:
parent
225f090bdb
commit
f3ad720130
|
@ -250,7 +250,7 @@ def Wp_COMMA : CommaJoined<["-"], "Wp,">,
|
|||
MetaVarName<"<arg>">;
|
||||
def Wwrite_strings : Flag<["-"], "Wwrite-strings">, Group<W_Group>, Flags<[CC1Option]>;
|
||||
def Wno_write_strings : Flag<["-"], "Wno-write-strings">, Group<W_Group>, Flags<[CC1Option]>;
|
||||
def W_Joined : Joined<["-"], "W">, Group<W_Group>, Flags<[CC1Option]>,
|
||||
def W_Joined : Joined<["-"], "W">, Group<W_Group>, Flags<[CC1Option, CoreOption]>,
|
||||
MetaVarName<"<warning>">, HelpText<"Enable the specified warning">;
|
||||
def Xanalyzer : Separate<["-"], "Xanalyzer">,
|
||||
HelpText<"Pass <arg> to the static analyzer">, MetaVarName<"<arg>">;
|
||||
|
|
|
@ -88,6 +88,10 @@
|
|||
// RUN: %clang_cl /Zs -### -- %s 2>&1 | FileCheck -check-prefix=Zs %s
|
||||
// Zs: -fsyntax-only
|
||||
|
||||
// We forward any unrecognized -W diagnostic options to cc1.
|
||||
// RUN: %clang_cl -Wunused-pragmas -### -- %s 2>&1 | FileCheck -check-prefix=WJoined %s
|
||||
// WJoined: "-cc1"
|
||||
// WJoined: "-Wunused-pragmas"
|
||||
|
||||
// Ignored options. Check that we don't get "unused during compilation" errors.
|
||||
// (/Zs is for syntax-only, /WX is for -Werror)
|
||||
|
|
Loading…
Reference in New Issue