diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-23 20:28:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-23 20:28:15 +0000 |
commit | 011bb4edf731d529da1cbf71c7c2696aaf5a054f (patch) | |
tree | 7087bbc4c94f2fe93b085406298a43cac6f3e232 /test/SemaCXX/nested-name-spec.cpp | |
parent | 545b368e6164ab748f55c5f84d384e97fc8a798b (diff) |
add support for inserting a DeclarationName into a diagnostic directly
without calling getAsString(). This implicitly puts quotes around the
name, so diagnostics need to be tweaked to accommodate this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/nested-name-spec.cpp')
-rw-r--r-- | test/SemaCXX/nested-name-spec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/nested-name-spec.cpp b/test/SemaCXX/nested-name-spec.cpp index 18cb3b418a..8e7e17af9d 100644 --- a/test/SemaCXX/nested-name-spec.cpp +++ b/test/SemaCXX/nested-name-spec.cpp @@ -21,11 +21,11 @@ void C2::m() { } namespace B { - void ::A::Af() {} // expected-error {{definition or redeclaration for 'Af' not in a namespace enclosing 'A'}} + void ::A::Af() {} // expected-error {{definition or redeclaration of 'Af' not in a namespace enclosing 'A'}} } void f1() { - void A::Af(); // expected-error {{definition or redeclaration for 'Af' not allowed inside a function}} + void A::Af(); // expected-error {{definition or redeclaration of 'Af' not allowed inside a function}} } void f2() { |