From: David Blaikie Date: Sun, 12 Feb 2012 19:51:50 +0000 (+0000) Subject: Move -Wdangling-else under -Wparentheses to be backwards compatibile with GCC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ecb72a84ecc28c3046f76f95503143cf3892fcc;p=clang Move -Wdangling-else under -Wparentheses to be backwards compatibile with GCC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 4fa19826b9..8c821c9657 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -259,7 +259,8 @@ def ParenthesesOnEquality : DiagGroup<"parentheses-equality">; def Parentheses : DiagGroup<"parentheses", [LogicalOpParentheses, BitwiseOpParentheses, - ParenthesesOnEquality]>; + ParenthesesOnEquality, + DanglingElse]>; // -Wconversion has its own warnings, but we split a few out for // legacy reasons: @@ -331,7 +332,7 @@ def Most : DiagGroup<"most", [ def ThreadSafety : DiagGroup<"thread-safety">; // -Wall is -Wmost -Wparentheses -Wdangling-else -Wswitch -def : DiagGroup<"all", [DanglingElse, Most, Parentheses, Switch]>; +def : DiagGroup<"all", [Most, Parentheses, Switch]>; // Aliases. def : DiagGroup<"", [Extra]>; // -W = -Wextra