llvm-project/clang/unittests/Tooling
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
..
CMakeLists.txt fix the unit tests too. 2013-01-19 18:30:39 +00:00
CommentHandlerTest.cpp Add testing for CommentHandler, and fix a bug where trailing comments in #else 2012-06-24 23:56:26 +00:00
CompilationDatabaseTest.cpp Include Path.h instead of PathV2.h. 2013-06-11 22:15:02 +00:00
Makefile [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
RecursiveASTVisitorTest.cpp Add a hook RecursiveASTVisitor::TraverseLambdaBody, to enable visitors to 2013-07-10 18:29:15 +00:00
RefactoringCallbacksTest.cpp Really sort the #include lines in unittests/... 2012-12-04 09:53:37 +00:00
RefactoringTest.cpp Use llvm::sys::fs::createTemporaryFile. 2013-07-05 20:00:06 +00:00
RewriterTest.cpp Adds a method overwriteChangedFiles to the Rewriter. This is implemented by 2012-05-22 17:01:35 +00:00
RewriterTestContext.h Use llvm::sys::fs::createTemporaryFile. 2013-07-05 20:00:06 +00:00
TestVisitor.h Add enumerators to TestVisitor::Language to allow visitor tests to 2013-06-30 03:05:49 +00:00
ToolingTest.cpp Enables chaining of argument adjusters in clang tools. 2013-06-04 14:44:44 +00:00