HomePhabricator

[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.

Description

[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

Details

Committed
d0kOct 20 2015, 8:08 AM
Differential Revision
D13897: [AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.
Branches
Unknown
Tags
Unknown