-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.

llvm-svn: 70363
This commit is contained in:
Chris Lattner 2009-04-29 04:16:52 +00:00
parent 941153afcd
commit 83a3235a3e
1 changed files with 3 additions and 2 deletions

View File

@ -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]>;