This is an archive of the discontinued LLVM Phabricator instance.

Move TraversalKind enum to ast_type_traits
ClosedPublic

Authored by steveire on May 12 2019, 1:18 PM.

Diff Detail

Event Timeline

steveire created this revision.May 12 2019, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2019, 1:18 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This is part of the work I demo'd at EuroLLVM for ignoring invisible AST nodes during AST Matching and dumping: http://ce.steveire.com/z/lHYwEH

aaron.ballman accepted this revision.May 16 2019, 7:40 AM

LGTM aside from some commenting requests.

include/clang/AST/ASTTypeTraits.h
44

s/any/all ?

47

Can you update the comment to more clearly state what is skipped, because it's more than just implicit casts and parentheses?

If we can find a better name for the traversal kind, then great, but I can't think of one. IgnoreRandomImplicitJunk doesn't seem like an improvement, despite it being more accurate. :-P

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

Thanks, I made the comment changes in a separate commit because otherwise this would cease to be a refactoring commit. Commits get too noisy if their content is modified "mid-flight".