[PATCH] D49840: [AST] Add MatchFinder::matchSubtree
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 26 03:44:17 PDT 2018
martong added a comment.
> Usually we use match(anyOf(node), hasDescendant(node)). Or did I misunderstand what you want?
My understanding is that, the free function template `match` uses `MatchFinder::matchAST`, which will start the traverse from the TranslationUnitDecl.
And there is no option to pick a specific node and specify that as the root of the traverse. I'd like an option to be able to start the traverse from a specific node, if it makes sense.
Repository:
rC Clang
https://reviews.llvm.org/D49840
More information about the cfe-commits
mailing list