diff options
author | John McCall <rjmccall@apple.com> | 2009-11-06 07:53:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-06 07:53:21 +0000 |
commit | 4c2620705b87ab6899fb2756bf191bb89d1995c8 (patch) | |
tree | b0079be75f17ea81f7c346afd6f61927d7c310d3 | |
parent | c2253f5ca170984fcd4f30f8823148e8cb71336b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86241 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 2a998d17c6..bfaebae873 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/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]>; |