forked from OSchip/llvm-project
Add -Wbuiltin-macro-redefined/-Wno-builtin-macro-redefined.
llvm-svn: 83017
This commit is contained in:
parent
b1a4477f1f
commit
26e69ac5cb
|
@ -70,6 +70,9 @@ def : DiagGroup<"shadow">;
|
|||
def : DiagGroup<"shorten-64-to-32">;
|
||||
def : DiagGroup<"sign-compare">;
|
||||
|
||||
// Preprocessor warnings.
|
||||
def : DiagGroup<"builtin-macro-redefined">;
|
||||
|
||||
// Just silence warnings about common forms of -Wstrict-aliasing for now.
|
||||
def : DiagGroup<"strict-aliasing=0">;
|
||||
def : DiagGroup<"strict-aliasing=1">;
|
||||
|
|
|
@ -112,7 +112,8 @@ def pp_poisoning_existing_macro : Warning<"poisoning existing macro">;
|
|||
def pp_out_of_date_dependency : Warning<
|
||||
"current file is older than dependency %0">;
|
||||
def pp_undef_builtin_macro : Warning<"undefining builtin macro">;
|
||||
def pp_redef_builtin_macro : Warning<"redefining builtin macro">;
|
||||
def pp_redef_builtin_macro : Warning<"redefining builtin macro">,
|
||||
InGroup<DiagGroup<"builtin-macro-redefined">>;
|
||||
def pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore,
|
||||
InGroup<DiagGroup<"unused-macros">>;
|
||||
def warn_pp_undef_identifier : Warning<
|
||||
|
|
Loading…
Reference in New Issue