[cfe-commits] r69324 - /cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Chris Lattner sabre at nondot.org
Thu Apr 16 16:30:16 PDT 2009


Author: lattner
Date: Thu Apr 16 18:30:16 2009
New Revision: 69324

URL: http://llvm.org/viewvc/llvm-project?rev=69324&view=rev
Log:
-Wall is -Wmost -Wparentheses


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=69324&r1=69323&r2=69324&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Thu Apr 16 18:30:16 2009
@@ -39,7 +39,7 @@
 def : DiagGroup<"nonportable-cfstrings">;
 def : DiagGroup<"old-style-definition">;
 def : DiagGroup<"packed">;
-def : DiagGroup<"parentheses">;
+def Parentheses : DiagGroup<"parentheses">;
 def : DiagGroup<"pointer-arith">;
 def : DiagGroup<"pointer-to-int-cast">;
 def : DiagGroup<"redundant-decls">;
@@ -63,12 +63,11 @@
 def VolatileRegisterVar : DiagGroup<"volatile-register-var">;
 def : DiagGroup<"write-strings">;
 
-def : DiagGroup<"extra">;
-def : DiagGroup<"">;  // -W
-def : DiagGroup<"most">;
+def Extra : DiagGroup<"extra">;
+def : DiagGroup<"", [Extra]>;  // -W = -Wextra
 
 // Aggregation warning settings.
-def : DiagGroup<"all", [
+def Most : DiagGroup<"most", [
     ImplicitFunctionDeclare,
     Switch,
     Trigraphs,
@@ -79,3 +78,6 @@
     VolatileRegisterVar
  ]>;
 
+// -Wall is -Wmost -Wparentheses
+def : DiagGroup<"all", [Most, Parentheses]>;
+





More information about the cfe-commits mailing list