[PATCH] D20382: Add postorder support to RecursiveASTVisitor

Raphael Isemann via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 13:41:57 PDT 2016


teemperor created this revision.
teemperor added reviewers: zaks.anna, v.g.vassilev, doug.gregor, chandlerc.
teemperor added a subscriber: cfe-commits.

This patch adds postorder traversal support to the RecursiveASTVisitor.

This feature needs to be explicitly enabled by overriding shouldTraversePostOrder()
as it has performance drawbacks for the iterative Stmt-traversal.

http://reviews.llvm.org/D20382

Files:
  include/clang/AST/RecursiveASTVisitor.h
  unittests/AST/CMakeLists.txt
  unittests/AST/PostOrderASTVisitor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20382.57660.patch
Type: text/x-patch
Size: 21439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/6082486a/attachment-0001.bin>


More information about the cfe-commits mailing list