From 11e1a3a385febc1f603b1717510c00be7c37882a Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 2 Apr 2014 05:58:29 +0000 Subject: Render anonymous entities as '(anonymous )' (and lambdas as '(lambda at ... )') For namespaces, this is consistent with mangling and GCC's debug info behavior. For structs, GCC uses but we prefer consistency between all anonymous entities but don't want to confuse them with template arguments, etc, so we'll just go with parens in all cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205398 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ASTMatchers/ASTMatchersTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/ASTMatchers') diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp index 6082c2b90a..05b07c81a9 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -1041,7 +1041,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 ::A"))))); + fieldDecl(hasType(asString("struct (anonymous namespace)::A"))))); } TEST(Matcher, OverloadedOperatorCall) { -- cgit v1.2.3