aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-29 04:16:52 +0000
committerChris Lattner <sabre@nondot.org>2009-04-29 04:16:52 +0000
commit02c2e1fef53183a37cb9128863edbf620688abc3 (patch)
treea015a82802713c2ad44263f95f2270d7adc1a10c
parentbe8434a0cc0355f652d59553f8aaa3c88bfe3c94 (diff)
-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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70363 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticGroups.td5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td
index 4aff9340f5..69651f41a4 100644
--- a/include/clang/Basic/DiagnosticGroups.td
+++ b/include/clang/Basic/DiagnosticGroups.td
@@ -32,9 +32,10 @@ def : DiagGroup<"conversion">;
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]>;