This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by sammccall on Jan 7 2019, 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

Event Timeline

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

LGTM!

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