Move -Wdangling-else under -Wparentheses to be backwards compatibile with GCC.

llvm-svn: 150349
This commit is contained in:
David Blaikie 2012-02-12 19:51:50 +00:00
parent e096a35518
commit 23b478d3e8
1 changed files with 3 additions and 2 deletions

View File

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