summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-02-14 22:12:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-02-14 22:12:54 +0000
commit8972f4e96650c0fed11cec168562a1a8de8418ac (patch)
treec8ecbf14133e008d04a0a39e187a15942403a4b5 /clang/unittests/ASTMatchers/ASTMatchersTest.cpp
parent2e66bfc9a1113c46d6a0ef004c713a56af6726c5 (diff)
downloadbcm5719-llvm-8972f4e96650c0fed11cec168562a1a8de8418ac.tar.gz
bcm5719-llvm-8972f4e96650c0fed11cec168562a1a8de8418ac.zip
Consistently print anonymous namespace names as "<anonymous namespace>"
For some reason we have two bits of code handling this printing: lib/AST/Decl.cpp: OS << "<anonymous namespace>"; lib/AST/TypePrinter.cpp: OS << "<anonymous namespace>::"; it would be nice if we only had one... llvm-svn: 201437
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 5c9753f9336..669978b8a9f 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -1038,7 +1038,7 @@ TEST(HasType, MatchesAsString) {
EXPECT_TRUE(matches("namespace ns { struct A {}; } struct B { ns::A a; };",
fieldDecl(hasType(asString("ns::A")))));
EXPECT_TRUE(matches("namespace { struct A {}; } struct B { A a; };",
- fieldDecl(hasType(asString("struct <anonymous>::A")))));
+ fieldDecl(hasType(asString("struct <anonymous namespace>::A")))));
}
TEST(Matcher, OverloadedOperatorCall) {
OpenPOWER on IntegriCloud