Page MenuHomePhabricator

[ASTMatchers] Improve assert message for broken parent map.
ClosedPublic

Authored by sammccall on Mon, Jan 7, 8:42 AM.

Details

Summary

This assert catches places where the AST (as seen by RecursiveASTVisitor)
becomes disconnected due to incomplete traversal.
Making it print the actual parent-less node is a lot more helpful - it's
possible to work out which part of the tree wasn't traversed.

Diff Detail

Repository
rL LLVM

Event Timeline

sammccall created this revision.Mon, Jan 7, 8:42 AM
aaron.ballman accepted this revision.Mon, Jan 7, 10:10 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

This revision is now accepted and ready to land.Mon, Jan 7, 10:10 AM
This revision was automatically updated to reflect the committed changes.