[PATCH] D34419: Make sure TraverseInitListExpr visits InitListExpr exactly twice
Stephan Bergmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 20 14:06:35 PDT 2017
sberg created this revision.
... once each for the syntactic and semantic form. Without this fix, behavior of the newly added tests would have been
InitListExprIsPreOrderVisitedTwice:
syntactic: 1
semantic: 2
InitListExprIsPostOrderVisitedTwice:
syntactic: 0
semantic: 1
InitListExprIsPreOrderNoQueueVisitedTwice:
syntactic: 1
semantic: 2
InitListExprIsPostOrderNoQueueVisitedTwice:
syntactic: 0
semantic: 2
https://reviews.llvm.org/D34419
Files:
include/clang/AST/RecursiveASTVisitor.h
unittests/Tooling/RecursiveASTVisitorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34419.103265.patch
Type: text/x-patch
Size: 5501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170620/81e90854/attachment.bin>
More information about the cfe-commits
mailing list