aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMartin Bohme <mboehme@google.com>2016-07-26 15:19:10 +0000
committerMartin Bohme <mboehme@google.com>2016-07-26 15:19:10 +0000
commitd9a3521552ae6b2e8f475aeefe8cbf36d1f40f42 (patch)
tree5378060212fad9d32f024ee30ca3fef6eb8dbddb /clang/lib/Frontend/CompilerInvocation.cpp
parentdf5bcea08806580cd2a99b12c9fd7d428fd60004 (diff)
downloadllvm-d9a3521552ae6b2e8f475aeefe8cbf36d1f40f42.zip
llvm-d9a3521552ae6b2e8f475aeefe8cbf36d1f40f42.tar.gz
llvm-d9a3521552ae6b2e8f475aeefe8cbf36d1f40f42.tar.bz2
Make RecursiveASTVisitor visit lambda capture initialization expressions
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: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D22566 llvm-svn: 276755
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions