This is an archive of the discontinued LLVM Phabricator instance.

[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.
ClosedPublic

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

Details

Summary

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

Repository
rL LLVM

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.