diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:29:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:29:12 +0000 |
commit | aae57c21de274984e145c95500b3d9bf4370543c (patch) | |
tree | f130d022818d2aaad64b351153c9e83c288b3c30 | |
parent | 323c310efa0abd7a786b0303501186b5f33eb8d7 (diff) |
accept -Wcomments as an alias for -Wcomment, PR5855
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91929 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 761478abd3..03aad86063 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -171,8 +171,9 @@ def Most : DiagGroup<"most", [ def : DiagGroup<"all", [Most, Parentheses]>; // Aliases. -def : DiagGroup<"", [Extra]>; // -W = -Wextra -def : DiagGroup<"endif-labels", [ExtraTokens]>; // endif-labels = endif-tokens +def : DiagGroup<"", [Extra]>; // -W = -Wextra +def : DiagGroup<"endif-labels", [ExtraTokens]>; // -Wendif-labels=-Wendif-tokens +def : DiagGroup<"comments", [Comment]>; // -Wcomments = -Wcomment // A warning group for warnings that we want to have on by default in clang, // but which aren't on by default in GCC. |