[cfe-users] traversing the ast using libtooling

folkert via cfe-users cfe-users at lists.llvm.org
Thu Aug 4 02:03:42 PDT 2016


Hi,

When I want to walk over the complete ast and visit each node (by using
a RecursiveASTVisitor<...>), do I need to implement all of TraverseDecl,
TraverseStmt and TraverseType? Because with all of those it looks like
some code is processed twice.

Second question: there are other Traverse...-methods as well:
TraverseAttr for example. Shouldn't I implement that one as well to get
all data?


Folkert van Heusden

-- 
-----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


More information about the cfe-users mailing list