Use 'c++' not 'cxx' in these diagnostic group names for consistency.
llvm-svn: 182075
This commit is contained in:
parent
841d8b2610
commit
1239d84f77
|
|
@ -85,8 +85,8 @@ def FormatExtraArgs : DiagGroup<"format-extra-args">;
|
||||||
def FormatZeroLength : DiagGroup<"format-zero-length">;
|
def FormatZeroLength : DiagGroup<"format-zero-length">;
|
||||||
|
|
||||||
// Warnings for C++1y code which is not compatible with prior C++ standards.
|
// Warnings for C++1y code which is not compatible with prior C++ standards.
|
||||||
def CXXPre1yCompat : DiagGroup<"cxx98-cxx11-compat">;
|
def CXXPre1yCompat : DiagGroup<"c++98-c++11-compat">;
|
||||||
def CXXPre1yCompatPedantic : DiagGroup<"cxx98-cxx11-compat-pedantic",
|
def CXXPre1yCompatPedantic : DiagGroup<"c++98-c++11-compat-pedantic",
|
||||||
[CXXPre1yCompat]>;
|
[CXXPre1yCompat]>;
|
||||||
|
|
||||||
def CXX98CompatBindToTemporaryCopy :
|
def CXX98CompatBindToTemporaryCopy :
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wc++98-compat -Werror %s
|
// 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++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
|
// -Wc++98-compat-pedantic warns on C++11 features which we accept without a
|
||||||
// warning in C++98 mode.
|
// warning in C++98 mode.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue