[cfe-dev] new design of RecursiveASTVisitor

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Mon Jun 7 02:09:18 PDT 2010


I've build my AST traversal on top of llvm's df_iterator.

To get an idea, check

https://gforge.zih.tu-dresden.de/scm/viewvc.php/trunk/Scout/clangAddons/include/clang/ASTProcessing/StmtTraversal.h?root=hicfd&view=markup

stmt_iterator enables the traversal over a particular type, which at 
least for me is sufficient in most cases. For more complex tasks there 
is visit_df taking a StmtVisitor.

Best regards
Olaf Krzikalla



More information about the cfe-dev mailing list