[cfe-commits] r150349 - /cfe/trunk/include/clang/Basic/DiagnosticGroups.td

David Blaikie dblaikie at gmail.com
Sun Feb 12 11:51:50 PST 2012


Author: dblaikie
Date: Sun Feb 12 13:51:50 2012
New Revision: 150349

URL: http://llvm.org/viewvc/llvm-project?rev=150349&view=rev
Log:
Move -Wdangling-else under -Wparentheses to be backwards compatibile with GCC.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=150349&r1=150348&r2=150349&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Sun Feb 12 13:51:50 2012
@@ -259,7 +259,8 @@
 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 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





More information about the cfe-commits mailing list