Add -Wbuiltin-macro-redefined/-Wno-builtin-macro-redefined.

llvm-svn: 83017
This commit is contained in:
Rafael Espindola 2009-09-28 21:24:34 +00:00
parent b1a4477f1f
commit 26e69ac5cb
2 changed files with 5 additions and 1 deletions

View File

@ -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">;

View File

@ -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<