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

John McCall rjmccall at apple.com
Thu Nov 5 23:53:22 PST 2009

Author: rjmccall
Date: Fri Nov  6 01:53:21 2009
New Revision: 86241

URL: http://llvm.org/viewvc/llvm-project?rev=86241&view=rev
Create a warning group "non-gcc" for diagnostics which are not enabled
by default in GCC.  Users who want to emulate gcc's warning behavior
exactly should be able to use CC="clang -Wno-non-gcc";  this should help
projects to transition.


Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=86241&r1=86240&r2=86241&view=diff

--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Fri Nov  6 01:53:21 2009
@@ -159,3 +159,7 @@
 def : DiagGroup<"", [Extra]>;  // -W = -Wextra
 def : DiagGroup<"endif-labels", [ExtraTokens]>; // endif-labels = endif-tokens
+// A warning group for warnings that we want to have on by default in clang,
+// but which aren't no by default in GCC.
+def NonGCC : DiagGroup<"non-gcc",
+    [SignCompare]>;

More information about the cfe-commits mailing list