llvm-project/clang/unittests
James Dennett 86e67a2fc4 Add a hook RecursiveASTVisitor::TraverseLambdaBody, to enable visitors to
use/maintain additional state from the LambdaExpr while visiting the body
of a LambdaExpr.

One use for this arises because Clang's AST currently holds lambda bodies
in a form prior to their adjustment to refer to captured copies of local
variables, and so some clients will need access to the lambda's closure
type in order to query how to map VarDecl*s to the FieldDecls of their
by-copy captures. This hook is sufficient for at least one such client;
to do this without such a hook would require the client to re-implement
the whole of TraverseLambdaExpr, which is non-trivial and would likely be
more brittle.

llvm-svn: 186024
2013-07-10 18:29:15 +00:00
..
AST Fixed testcase failing under MS by adding "-fno-delayed-template-parsing", 2013-07-08 14:50:30 +00:00
ASTMatchers clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp: Suppress unexpected failures on MS hosts. 2013-06-24 13:19:26 +00:00
Basic [Preprocessor] For the MacroExpands preprocessor callback, also pass the MacroArgs object that provides information about 2013-05-03 22:31:32 +00:00
Format Add experimental flag for adaptive parameter bin-packing. 2013-07-10 14:02:49 +00:00
Frontend [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
Lex Include Path.h instead of PathV2.h. 2013-06-11 22:15:02 +00:00
Tooling Add a hook RecursiveASTVisitor::TraverseLambdaBody, to enable visitors to 2013-07-10 18:29:15 +00:00
CMakeLists.txt Turn CLANG_ENABLE_{ARCMT,REWRITER,STATIC_ANALYZER} into proper options so that 2013-05-29 21:09:18 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00