]> granicus.if.org Git - clang/commitdiff
Use 'c++' not 'cxx' in these diagnostic group names for consistency.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 May 2013 03:11:25 +0000 (03:11 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 May 2013 03:11:25 +0000 (03:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182075 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
test/SemaCXX/cxx98-compat-pedantic.cpp

index d5f777d3d7152d4bc208e750d226d9b481bbf0e9..605e6cc7d97f249d24d318521a3b7835873d50d3 100644 (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 :
index 208ea4ce923864cebb254170c8b77d97cc5483a9..0b18ae4f221c935a89b4a12360c938916478ad18 100644 (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.