diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-20 15:08:46 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-20 15:08:46 +0000 |
commit | 36307ffa1b7d3a5975435a0e9ed874b10e153bfc (patch) | |
tree | 719b46a225e8ca274cb1b0bf0e0f7e99e48d3f9e /clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | |
parent | c736863a85c511e29c4ac0f7a1b6cf0a749df18e (diff) | |
download | bcm5719-llvm-36307ffa1b7d3a5975435a0e9ed874b10e153bfc.tar.gz bcm5719-llvm-36307ffa1b7d3a5975435a0e9ed874b10e153bfc.zip |
[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.
Firstly this changes the type of parent map to be keyed on DynTypedNode to
simplify the following changes. This comes with a DenseMapInfo for
DynTypedNode, which is a bit incomplete still and will probably only work
for parentmap right now.
Then the RecursiveASTVisitor in ASTContext is updated and finally
ASTMatchers hasParent and hasAncestor learn about the new functionality.
Now ParentMap is only missing TemplateArgumentLocs and CXXCtorInitializers.
Differential Revision: http://reviews.llvm.org/D13897
llvm-svn: 250831
Diffstat (limited to 'clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp')
-rw-r--r-- | clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index ef66a816aac..2c94a727de1 100644 --- a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -318,7 +318,8 @@ TEST(ParserTest, CompletionNamedValues) { Comps[1].MatcherDecl); EXPECT_EQ("arent(", Comps[2].TypedText); - EXPECT_EQ("Matcher<Decl> hasParent(Matcher<Decl|Stmt>)", + EXPECT_EQ("Matcher<Decl> " + "hasParent(Matcher<NestedNameSpecifierLoc|TypeLoc|Decl|...>)", Comps[2].MatcherDecl); } |