summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-06 07:53:21 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-06 07:53:21 +0000
commitd59dd65fa44f1e94717d6488e5e6aa20f5563905 (patch)
tree27b5e1d93bfb9351b41d1c07b8520e38ed77e762
parent3e4fac74084eabb7545bc8064aa3ef9eb4ba1fcf (diff)
downloadbcm5719-llvm-d59dd65fa44f1e94717d6488e5e6aa20f5563905.tar.gz
bcm5719-llvm-d59dd65fa44f1e94717d6488e5e6aa20f5563905.zip
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. llvm-svn: 86241
-rw-r--r--clang/include/clang/Basic/DiagnosticGroups.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index 2a998d17c66..bfaebae873c 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -159,3 +159,7 @@ def : DiagGroup<"all", [Most, Parentheses]>;
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]>;
OpenPOWER on IntegriCloud