diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-12 19:26:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-12 19:26:40 +0000 |
commit | b3df1386680b3830d2f4d300d4d7eaba134135fc (patch) | |
tree | e834f821be27c7ddd62865125eb1bd5604d668a2 /test/Parser | |
parent | 46717308883538841da7059e72bc898abe0c8724 (diff) |
Switch diagnostic text from "C++0x" over to "C++11".
We'd also like for "C++11" or "c++11" to be used for the warning
groups, but without removing the old warning flags. Patches welcome;
I've run out of time to work on this today.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/cxx-ext-delete-default.cpp | 10 | ||||
-rw-r--r-- | test/Parser/cxx-reference.cpp | 2 | ||||
-rw-r--r-- | test/Parser/cxx0x-in-cxx98.cpp | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/test/Parser/cxx-ext-delete-default.cpp b/test/Parser/cxx-ext-delete-default.cpp index 0627238514..be6efee241 100644 --- a/test/Parser/cxx-ext-delete-default.cpp +++ b/test/Parser/cxx-ext-delete-default.cpp @@ -1,11 +1,11 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s struct A { - A(const A&) = delete; // expected-warning {{accepted as a C++0x extension}} - A& operator=(const A&) = delete; // expected-warning {{accepted as a C++0x extension}} - A() = default; // expected-warning {{accepted as a C++0x extension}} + A(const A&) = delete; // expected-warning {{accepted as a C++11 extension}} + A& operator=(const A&) = delete; // expected-warning {{accepted as a C++11 extension}} + A() = default; // expected-warning {{accepted as a C++11 extension}} ~A(); }; -void f() = delete; // expected-warning {{accepted as a C++0x extension}} -A::~A() = default; //expected-warning {{accepted as a C++0x extension}} +void f() = delete; // expected-warning {{accepted as a C++11 extension}} +A::~A() = default; //expected-warning {{accepted as a C++11 extension}} diff --git a/test/Parser/cxx-reference.cpp b/test/Parser/cxx-reference.cpp index fae938bcaa..d21412cec0 100644 --- a/test/Parser/cxx-reference.cpp +++ b/test/Parser/cxx-reference.cpp @@ -18,4 +18,4 @@ int & volatile Y = val; // expected-error {{'volatile' qualifier may not be appl int & const volatile Z = val; /* expected-error {{'const' qualifier may not be applied}} \ expected-error {{'volatile' qualifier may not be applied}} */ -typedef int && RV; // expected-warning {{rvalue references are a C++0x extension}} +typedef int && RV; // expected-warning {{rvalue references are a C++11 extension}} diff --git a/test/Parser/cxx0x-in-cxx98.cpp b/test/Parser/cxx0x-in-cxx98.cpp index e0cbc23f58..9e41a700a9 100644 --- a/test/Parser/cxx0x-in-cxx98.cpp +++ b/test/Parser/cxx0x-in-cxx98.cpp @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s -inline namespace N { // expected-warning{{inline namespaces are a C++0x feature}} +inline namespace N { // expected-warning{{inline namespaces are a C++11 feature}} struct X { - template<typename ...Args> // expected-warning{{variadic templates are a C++0x extension}} - void f(Args &&...) &; // expected-warning{{rvalue references are a C++0x extension}} \ - // expected-warning{{reference qualifiers on functions are a C++0x extension}} + template<typename ...Args> // expected-warning{{variadic templates are a C++11 extension}} + void f(Args &&...) &; // expected-warning{{rvalue references are a C++11 extension}} \ + // expected-warning{{reference qualifiers on functions are a C++11 extension}} }; } |