[cfe-commits] r70363 - /cfe/trunk/include/clang/Basic/DiagnosticGroups.td
Chris Lattner
sabre at nondot.org
Tue Apr 28 21:16:53 PDT 2009
Author: lattner
Date: Tue Apr 28 23:16:52 2009
New Revision: 70363
URL: http://llvm.org/viewvc/llvm-project?rev=70363&view=rev
Log:
-Wformat should depend on format-extra-args so that -Wformat implies
the extra argument warnings, and -Wformat -Wno-format-extra-args
turns on -Wformat but not the extra-args warnings.
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=70363&r1=70362&r2=70363&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Tue Apr 28 23:16:52 2009
@@ -32,9 +32,10 @@
def : DiagGroup<"declaration-after-statement">;
def ExtraTokens : DiagGroup<"extra-tokens">;
-def Format : DiagGroup<"format">;
+def FormatExtraArgs : DiagGroup<"format-extra-args">;
+
+def Format : DiagGroup<"format", [FormatExtraArgs]>;
def Format2 : DiagGroup<"format=2", [Format]>;
-def : DiagGroup<"format-extra-args", [Format]>;
def FormatNonLiteral : DiagGroup<"format-nonliteral", [Format]>;
def FormatSecurity : DiagGroup<"format-security", [Format]>;
def : DiagGroup<"format-y2k", [Format]>;
More information about the cfe-commits
mailing list