diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-28 22:19:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-28 22:19:16 +0000 |
commit | 0292d99c51ea4dc8737cb7fc5909ade011d374b3 (patch) | |
tree | 46b2b69f7bd4601e98758922fc9bfa8adf92c4fa | |
parent | 1ab86ac92282a92ab847e2ea36c124152c52911d (diff) |
add support for -Wendif-labels, PR4101
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70335 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 9 | ||||
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 18ca0c380e..6ed8afb0ff 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -30,6 +30,7 @@ def : DiagGroup<"char-subscripts">; def Comment : DiagGroup<"comment">; def : DiagGroup<"conversion">; def : DiagGroup<"declaration-after-statement">; +def ExtraTokens : DiagGroup<"extra-tokens">; def : DiagGroup<"format-security">; def : DiagGroup<"format=2">; def : DiagGroup<"format">; @@ -88,10 +89,10 @@ def VectorConversions : DiagGroup<"vector-conversions">; // clang specific def VolatileRegisterVar : DiagGroup<"volatile-register-var">; def : DiagGroup<"write-strings">; +// Aggregation warning settings. + def Extra : DiagGroup<"extra">; -def : DiagGroup<"", [Extra]>; // -W = -Wextra -// Aggregation warning settings. def Most : DiagGroup<"most", [ Comment, Implicit, @@ -109,3 +110,7 @@ def Most : DiagGroup<"most", [ // -Wall is -Wmost -Wparentheses def : DiagGroup<"all", [Most, Parentheses]>; +// Aliases. +def : DiagGroup<"", [Extra]>; // -W = -Wextra +def : DiagGroup<"endif-labels", [ExtraTokens]>; // endif-labels = endif-tokens + diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 893878714b..3d1f9320cd 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -135,7 +135,7 @@ def ext_pp_include_next_directive : Extension< def ext_pp_warning_directive : Extension<"#warning is a language extension">; def ext_pp_extra_tokens_at_eol : ExtWarn< - "extra tokens at end of #%0 directive">, InGroup<DiagGroup<"extra-tokens">>; + "extra tokens at end of #%0 directive">, InGroup<ExtraTokens>; def ext_pp_comma_expr : Extension<"comma operator in operand of #if">; def ext_pp_bad_vaargs_use : Extension< |