Use 'c++' not 'cxx' in these diagnostic group names for consistency.

llvm-svn: 182075
This commit is contained in:
Richard Smith 2013-05-17 03:11:25 +00:00
parent 841d8b2610
commit 1239d84f77
2 changed files with 4 additions and 2 deletions

View File

@ -85,8 +85,8 @@ def FormatExtraArgs : DiagGroup<"format-extra-args">;
def FormatZeroLength : DiagGroup<"format-zero-length">;
// Warnings for C++1y code which is not compatible with prior C++ standards.
def CXXPre1yCompat : DiagGroup<"cxx98-cxx11-compat">;
def CXXPre1yCompatPedantic : DiagGroup<"cxx98-cxx11-compat-pedantic",
def CXXPre1yCompat : DiagGroup<"c++98-c++11-compat">;
def CXXPre1yCompatPedantic : DiagGroup<"c++98-c++11-compat-pedantic",
[CXXPre1yCompat]>;
def CXX98CompatBindToTemporaryCopy :

View File

@ -4,6 +4,8 @@
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wc++98-compat -Werror %s
// RUN: %clang_cc1 -fsyntax-only -std=c++98 -Werror %s
// RUN: %clang_cc1 -fsyntax-only -std=c++1y -Wc++98-compat-pedantic -verify %s -Wno-c++98-c++11-compat-pedantic
// -Wc++98-compat-pedantic warns on C++11 features which we accept without a
// warning in C++98 mode.