forked from OSchip/llvm-project
Move -Wdangling-else under -Wparentheses to be backwards compatibile with GCC.
llvm-svn: 150349
This commit is contained in:
parent
e096a35518
commit
23b478d3e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue