diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td index 468acb0f0f6d..cd11c59da31f 100644 --- a/clang/include/clang/Basic/DiagnosticGroups.td +++ b/clang/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]>; +