summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-using-directive.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2013-10-19 00:05:00 +0000
committerKaelyn Uhrain <rikka@google.com>2013-10-19 00:05:00 +0000
commit8aa8da85ca60f2c7d88c47a67a4252bd032d1eb9 (patch)
tree481dd4d4b8137bf847d34fcc4a42c9043aa01bce /clang/test/Parser/cxx-using-directive.cpp
parentf7b63e3e18601459d95849e6fbc776b718d12515 (diff)
downloadbcm5719-llvm-8aa8da85ca60f2c7d88c47a67a4252bd032d1eb9.tar.gz
bcm5719-llvm-8aa8da85ca60f2c7d88c47a67a4252bd032d1eb9.zip
Allow CorrectTypo to replace CXXScopeSpecifiers that refer to classes.
Now that CorrectTypo knows how to correctly search classes for typo correction candidates, there is no good reason to only replace an existing CXXScopeSpecifier if it refers to a namespace. While the actual enablement was a matter of changing a single comparison, the fallout from enabling the functionality required a lot more code changes (including my two previous commits). llvm-svn: 193020
Diffstat (limited to 'clang/test/Parser/cxx-using-directive.cpp')
-rw-r--r--clang/test/Parser/cxx-using-directive.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/cxx-using-directive.cpp b/clang/test/Parser/cxx-using-directive.cpp
index 76dc22f1530..5efd991c8e7 100644
--- a/clang/test/Parser/cxx-using-directive.cpp
+++ b/clang/test/Parser/cxx-using-directive.cpp
@@ -4,7 +4,7 @@ class A {};
namespace B {
namespace A {} // expected-note{{namespace '::B::A' defined here}} \
- // expected-note{{namespace 'B::A' defined here}}
+ // expected-note 2{{namespace 'B::A' defined here}}
using namespace A ;
}
@@ -28,7 +28,7 @@ namespace D {
using namespace ! ; // expected-error{{expected namespace name}}
using namespace A ; // expected-error{{no namespace named 'A'; did you mean 'B::A'?}}
-using namespace ::A // expected-error{{expected namespace name}} \
+using namespace ::A // expected-error{{no namespace named 'A' in the global namespace; did you mean 'B::A'?}} \
// expected-error{{expected ';' after namespace name}}
B ;
OpenPOWER on IntegriCloud