[cfe-commits] r72389 - in /cfe/trunk/include/clang/Basic: DiagnosticGroups.td DiagnosticSemaKinds.td

Chris Lattner sabre at nondot.org
Mon May 25 11:10:42 PDT 2009


Author: lattner
Date: Mon May 25 13:10:41 2009
New Revision: 72389

URL: http://llvm.org/viewvc/llvm-project?rev=72389&view=rev
Log:
move some format group options around in the file.  Move NonNull group into
DiagnosticGroups.td, and add it as part of -Wformat (which gets it into -Wall).

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

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

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Mon May 25 13:10:41 2009
@@ -7,8 +7,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-def Trigraphs : DiagGroup<"trigraphs">;
-
 def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">;
 def ImplicitInt : DiagGroup<"implicit-int">;
 
@@ -37,13 +35,6 @@
 def FormatExtraArgs : DiagGroup<"format-extra-args">;
 def FormatZeroLength : DiagGroup<"format-zero-length">;
 
-def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength]>;
-def FormatSecurity : DiagGroup<"format-security", [Format]>;
-def FormatNonLiteral : DiagGroup<"format-nonliteral", [FormatSecurity]>;
-def FormatY2K : DiagGroup<"format-y2k", [Format]>;
-def Format2 : DiagGroup<"format=2",
-                        [FormatNonLiteral, FormatSecurity, FormatY2K]>;
-
 def FourByteMultiChar : DiagGroup<"four-char-constants">;
 def : DiagGroup<"init-self">;
 def : DiagGroup<"inline">;
@@ -56,7 +47,9 @@
 def : DiagGroup<"nested-externs">;
 def : DiagGroup<"newline-eof">;
 def : DiagGroup<"long-long">;
+def MismatchedTags : DiagGroup<"mismatched-tags">;
 def : DiagGroup<"missing-field-initializers">;
+def NonNull : DiagGroup<"nonnull">;
 def : DiagGroup<"nonportable-cfstrings">;
 def : DiagGroup<"old-style-definition">;
 def : DiagGroup<"packed">;
@@ -86,7 +79,7 @@
 def : DiagGroup<"strict-prototypes">;
 def : DiagGroup<"strict-selector-match">;
 def Switch         : DiagGroup<"switch">;
-def MismatchedTags    : DiagGroup<"mismatched-tags">;
+def Trigraphs : DiagGroup<"trigraphs">;
 
 def : DiagGroup<"type-limits">;
 def Uninitialized  : DiagGroup<"uninitialized">;
@@ -103,6 +96,16 @@
 
 // Aggregation warning settings.
 
+
+// Format settings.
+def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength, NonNull]>;
+def FormatSecurity : DiagGroup<"format-security", [Format]>;
+def FormatNonLiteral : DiagGroup<"format-nonliteral", [FormatSecurity]>;
+def FormatY2K : DiagGroup<"format-y2k", [Format]>;
+def Format2 : DiagGroup<"format=2",
+                        [FormatNonLiteral, FormatSecurity, FormatY2K]>;
+
+
 def Extra : DiagGroup<"extra">;
 
 def Most : DiagGroup<"most", [

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

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon May 25 13:10:41 2009
@@ -1625,7 +1625,7 @@
   "format string missing">, InGroup<Format>;
 def warn_null_arg : Warning<
   "argument is null where non-null is required">,
-  InGroup<DiagGroup<"nonnull">>, DefaultIgnore;
+  InGroup<NonNull>, DefaultIgnore;
 def warn_printf_empty_format_string : Warning<
   "format string is empty">, InGroup<FormatZeroLength>;
 def warn_printf_format_string_is_wide_literal : Warning<





More information about the cfe-commits mailing list