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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to