summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-05-29 02:35:27 +0000
committerEli Bendersky <eliben@google.com>2014-05-29 02:35:27 +0000
commit27fd28cbfaa5a6c6b26ed41bf060042e61993122 (patch)
tree4d2fc5a886786375244b04bddb523221c13d10df /lib/CodeGen/CGExpr.cpp
parenteca0bcfaee4c16fe21552234b0c44dfb978974e5 (diff)
downloadclang-27fd28cbfaa5a6c6b26ed41bf060042e61993122.tar.gz
clang-27fd28cbfaa5a6c6b26ed41bf060042e61993122.tar.bz2
clang-27fd28cbfaa5a6c6b26ed41bf060042e61993122.tar.xz
Implement a convenience recursive walk method over a cursor and its descendants.
Before r160106 there was a way to recursively visit all descendants of a cursor via Cursor_visit, but it was removed. Since then, every user needs to reimplement the recursive descent into get_children. Adding a walk_preorder() method to Cursor that conveniently implements recursive walking in a Pythonic way. This also greatly simplifies get_cursor and get_cursors in tests/cindex/util.py (walk_preorder is now tested through these utility functions, since they are used in many tests). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions