Make it possible control matcher traversal kind with ASTContext
authorStephen Kelly <steveire@gmail.com>
Sun, 12 May 2019 20:09:32 +0000 (21:09 +0100)
committerStephen Kelly <steveire@gmail.com>
Fri, 6 Dec 2019 23:11:32 +0000 (23:11 +0000)
commit0a717d5b5d31fc2d5bc98ca695031fb09e65beb0
tree86fc2295619a94015df5a4f5436cb80869c24dbb
parentb4f4e370b59a753a51f11848f54e9705f43cccaf
Make it possible control matcher traversal kind with ASTContext

Summary:
This will eventually allow traversal of an AST while ignoring invisible
AST nodes.  Currently it depends on the available enum values for
TraversalKinds.  That can be extended to ignore all invisible nodes in
the future.

Reviewers: klimek, aaron.ballman

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61837
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/ASTNodeTraverser.h
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/AST/ASTContext.cpp
clang/lib/ASTMatchers/ASTMatchFinder.cpp
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp