diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-16 23:30:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-16 23:30:16 +0000 |
commit | b00ac07d2582b8bd32b61478970e10a1524b0298 (patch) | |
tree | 69c20842892a9f33dd00c14a46d5848e3c3d1bbe | |
parent | fec26bd1f4681db8c253fb86529e52bcad28a3ff (diff) |
-Wall is -Wmost -Wparentheses
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69324 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 468acb0f0f..cd11c59da3 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -39,7 +39,7 @@ def : DiagGroup<"missing-field-initializers">; def : DiagGroup<"nonportable-cfstrings">; def : DiagGroup<"old-style-definition">; def : DiagGroup<"packed">; -def : DiagGroup<"parentheses">; +def Parentheses : DiagGroup<"parentheses">; def : DiagGroup<"pointer-arith">; def : DiagGroup<"pointer-to-int-cast">; def : DiagGroup<"redundant-decls">; @@ -63,12 +63,11 @@ def : DiagGroup<"variadic-macros">; def VolatileRegisterVar : DiagGroup<"volatile-register-var">; def : DiagGroup<"write-strings">; -def : DiagGroup<"extra">; -def : DiagGroup<"">; // -W -def : DiagGroup<"most">; +def Extra : DiagGroup<"extra">; +def : DiagGroup<"", [Extra]>; // -W = -Wextra // Aggregation warning settings. -def : DiagGroup<"all", [ +def Most : DiagGroup<"most", [ ImplicitFunctionDeclare, Switch, Trigraphs, @@ -79,3 +78,6 @@ def : DiagGroup<"all", [ VolatileRegisterVar ]>; +// -Wall is -Wmost -Wparentheses +def : DiagGroup<"all", [Most, Parentheses]>; + |