[cfe-commits] r83017 - in /cfe/trunk/include/clang/Basic: DiagnosticGroups.td DiagnosticLexKinds.td
Rafael Espindola
rafael.espindola at gmail.com
Mon Sep 28 14:24:34 PDT 2009
Author: rafael
Date: Mon Sep 28 16:24:34 2009
New Revision: 83017
URL: http://llvm.org/viewvc/llvm-project?rev=83017&view=rev
Log:
Add -Wbuiltin-macro-redefined/-Wno-builtin-macro-redefined.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticGroups.td
cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=83017&r1=83016&r2=83017&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Mon Sep 28 16:24:34 2009
@@ -70,6 +70,9 @@
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">;
Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td?rev=83017&r1=83016&r2=83017&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Mon Sep 28 16:24:34 2009
@@ -112,7 +112,8 @@
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<
More information about the cfe-commits
mailing list