forked from OSchip/llvm-project
78bac52e14
Summary: Lambda capture initializations are part of the explicit source code and therefore should be visited by default but, so far, RecursiveASTVisitor does not visit them. This appears to be an oversight. Because the lambda body needs custom handling (calling TraverseLambdaBody()), the DEF_TRAVERSE_STMT for LambdaExpr sets ShouldVisitChildren to false but then neglects to visit the lambda capture initializations. This patch adds code to visit the expressions associated with lambda capture initializations. Reviewers: klimek Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D22566 llvm-svn: 277342 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CommentHandlerTest.cpp | ||
CompilationDatabaseTest.cpp | ||
FixItTest.cpp | ||
LookupTest.cpp | ||
QualTypeNamesTest.cpp | ||
RecursiveASTVisitorTest.cpp | ||
RecursiveASTVisitorTestCallVisitor.cpp | ||
RecursiveASTVisitorTestDeclVisitor.cpp | ||
RecursiveASTVisitorTestExprVisitor.cpp | ||
RecursiveASTVisitorTestTypeLocVisitor.cpp | ||
RefactoringCallbacksTest.cpp | ||
RefactoringTest.cpp | ||
ReplacementTest.h | ||
ReplacementsYamlTest.cpp | ||
RewriterTest.cpp | ||
RewriterTestContext.h | ||
TestVisitor.h | ||
ToolingTest.cpp |