aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-08 14:54:42 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-08 14:54:42 +0000
commit6d82ef45d624da4fc88a2fbf7dd1dc144aeb05b0 (patch)
tree952f9764cdfc9c0932752665c83d843c89c7a40d
parent39dbad9b67cd9e36b9cd3b48a16caf7e4461211e (diff)
Bowing to popular demand, reduce the "comma at end of enumerator list"
ExtWarn to an Extension. Let the broken code propagate! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107875 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticGroups.td1
-rw-r--r--include/clang/Basic/DiagnosticParseKinds.td4
-rw-r--r--test/SemaCXX/overloaded-operator.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td
index 9b4c939a95..8572c62e4b 100644
--- a/include/clang/Basic/DiagnosticGroups.td
+++ b/include/clang/Basic/DiagnosticGroups.td
@@ -38,7 +38,6 @@ def : DiagGroup<"disabled-optimization">;
def : DiagGroup<"discard-qual">;
def : DiagGroup<"div-by-zero">;
def EmptyBody : DiagGroup<"empty-body">;
-def EnumeratorListComma : DiagGroup<"enumerator-list-comma">;
def ExtraTokens : DiagGroup<"extra-tokens">;
def FormatExtraArgs : DiagGroup<"format-extra-args">;
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td
index 734b414b51..63bd3f65a9 100644
--- a/include/clang/Basic/DiagnosticParseKinds.td
+++ b/include/clang/Basic/DiagnosticParseKinds.td
@@ -51,9 +51,9 @@ def ext_c99_variable_decl_in_for_loop : Extension<
"variable declaration in for loop is a C99-specific feature">;
def ext_c99_compound_literal : Extension<
"compound literals are a C99-specific feature">;
-def ext_enumerator_list_comma : ExtWarn<
+def ext_enumerator_list_comma : Extension<
"commas at the end of enumerator lists are a %select{C99|C++0x}0-specific "
- "feature">, InGroup<EnumeratorListComma>;
+ "feature">;
def ext_gnu_indirect_goto : Extension<
"use of GNU indirect-goto extension">, InGroup<GNU>;
diff --git a/test/SemaCXX/overloaded-operator.cpp b/test/SemaCXX/overloaded-operator.cpp
index 15d6605d02..24f7f66129 100644
--- a/test/SemaCXX/overloaded-operator.cpp
+++ b/test/SemaCXX/overloaded-operator.cpp
@@ -293,7 +293,7 @@ void circ() {
// PR5360: Arrays should lead to built-in candidates for subscript.
typedef enum {
- LastReg = 23, // expected-warning{{commas at the end of enumerator lists are a C++0x-specific feature}}
+ LastReg = 23,
} Register;
class RegAlloc {
int getPriority(Register r) {