Page MenuHomePhabricator

[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.

Authored by bkramer on Oct 20 2015, 7:59 AM.



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.

Diff Detail


Event Timeline

bkramer updated this revision to Diff 37882.Oct 20 2015, 7:59 AM
bkramer retitled this revision from to [AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap..
bkramer updated this object.
bkramer added reviewers: klimek, sbenza.
bkramer added a subscriber: cfe-commits.
klimek accepted this revision.Oct 20 2015, 8:07 AM
klimek edited edge metadata.

Yay, another yak shaved!!!! \o/

This revision is now accepted and ready to land.Oct 20 2015, 8:07 AM
This revision was automatically updated to reflect the committed changes.