[cfe-dev] Semi dynamic building AST Matcher
David Come via cfe-dev
cfe-dev at lists.llvm.org
Tue Mar 22 08:39:47 PDT 2016
I seen 2 ways to build AST matchers : static and dynamic (my wording may
- The static one :auto matcher = recordDecl(hasName("Foo"),
isDerivedFrom("Bar")) directly written in a C++ file
- The dynamic one with Parser::parseMatcherExpression
And i was wandering if there was /semi dynamic/ way to build AST matchers ?
auto matcher = recordDecl();
The main idea beyond it is to be able to build matcher matching a
specific AST by visiting the AST
and building the matcher instead of building a string and then
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev