Skip to content

Commit 8e5a568

Browse files
committed
Add tests for sequences of callbacks that RecursiveASTVisitor produces
Summary: These tests show a bug: post-order traversal introduces an extra call to WalkUp*, that is not present in pre-order traversal. I'm fixing this bug in a follow-up commit. Reviewers: ymandel, eduucaldas Reviewed By: ymandel, eduucaldas Subscribers: gribozavr2, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82485
1 parent 10643c9 commit 8e5a568

File tree

2 files changed

+878
-0
lines changed

2 files changed

+878
-0
lines changed

clang/unittests/Tooling/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_clang_unittest(ToolingTests
2727
QualTypeNamesTest.cpp
2828
RangeSelectorTest.cpp
2929
RecursiveASTVisitorTests/Attr.cpp
30+
RecursiveASTVisitorTests/Callbacks.cpp
3031
RecursiveASTVisitorTests/Class.cpp
3132
RecursiveASTVisitorTests/ConstructExpr.cpp
3233
RecursiveASTVisitorTests/CXXBoolLiteralExpr.cpp

0 commit comments

Comments
 (0)