diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-02 05:58:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-02 05:58:29 +0000 |
commit | 11e1a3a385febc1f603b1717510c00be7c37882a (patch) | |
tree | 8660969c8a44e3d3d36f1cdbf8896fa1e87082c5 /unittests/ASTMatchers | |
parent | 8ef7942d6e4dc0894a52333b261172df3564a1a6 (diff) | |
download | clang-11e1a3a385febc1f603b1717510c00be7c37882a.tar.gz clang-11e1a3a385febc1f603b1717510c00be7c37882a.tar.bz2 clang-11e1a3a385febc1f603b1717510c00be7c37882a.tar.xz |
Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda at ... )')
For namespaces, this is consistent with mangling and GCC's debug info
behavior. For structs, GCC uses <anonymous struct> 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
Diffstat (limited to 'unittests/ASTMatchers')
-rw-r--r-- | unittests/ASTMatchers/ASTMatchersTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <anonymous namespace>::A"))))); + fieldDecl(hasType(asString("struct (anonymous namespace)::A"))))); } TEST(Matcher, OverloadedOperatorCall) { |