Make it usable outside of ASTMatchFinder. This will make it possible to
use this enum to control whether certain implicit nodes are skipped
while AST dumping for example.
Details
- Reviewers
klimek aaron.ballman ilya-biryukov sammccall martong - Commits
- rZORGa15898e4847b: Move TraversalKind enum to ast_type_traits
rGa15898e4847b: Move TraversalKind enum to ast_type_traits
rGd147cea3b94f: Move TraversalKind enum to ast_type_traits
rL360920: Move TraversalKind enum to ast_type_traits
rC360920: Move TraversalKind enum to ast_type_traits
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 31791 Build 31790: arc lint + arc unit
Event Timeline
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
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 |
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".
s/any/all ?