llvm-project/clang/unittests/Tooling
Vedant Kumar 35d303adbf [Sema] Remove location from implicit capture init expr
A lambda's closure is initialized when the lambda is declared. For
implicit captures, the initialization code emitted from EmitLambdaExpr
references source locations *within the lambda body* in the function
containing the lambda. This results in a poor debugging experience: we
step to the line containing the lambda, then into lambda, out again,
over and over, until every capture's field is initialized.

To improve stepping behavior, assign the starting location of the lambda
to expressions which initialize an implicit capture within it.

rdar://39807527

Differential Revision: https://reviews.llvm.org/D50927

llvm-svn: 342194
2018-09-13 23:28:25 +00:00
..
RecursiveASTVisitorTests [Sema] Remove location from implicit capture init expr 2018-09-13 23:28:25 +00:00
ASTSelectionTest.cpp [refactor][selection] canonicalize decl ref callee to the call expr 2017-11-14 23:10:50 +00:00
CMakeLists.txt [clang][tooling] Don't forget to link to clangToolingInclusions. 2018-06-04 12:04:41 +00:00
CastExprTest.cpp Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion 2017-06-27 08:19:09 +00:00
CommentHandlerTest.cpp Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
CompilationDatabaseTest.cpp [Tooling] Improve handling of CL-style options 2018-09-09 12:06:35 +00:00
DiagnosticsYamlTest.cpp Try to fix modules build 2017-07-15 00:29:25 +00:00
ExecutionTest.cpp [Tooling] Add a isSingleProcess() helper to ToolExecutor 2018-08-24 09:03:29 +00:00
FixItTest.cpp
HeaderIncludesTest.cpp Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
LexicallyOrderedRecursiveASTVisitorTest.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
LookupTest.cpp Fully qualify the renamed symbol if the shortened name is ambiguous. 2018-08-03 09:16:07 +00:00
QualTypeNamesTest.cpp Allow modifying the PrintingPolicy for fully qualified names. 2018-05-04 20:12:39 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
RecursiveASTVisitorTestPostOrderVisitor.cpp Refactor RecursiveASTVisitor test for post-order traversal 2018-01-24 09:40:16 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RefactoringActionRulesTest.cpp Unittests misc. typos 2018-02-06 13:12:29 +00:00
RefactoringCallbacksTest.cpp Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks 2017-05-10 07:48:45 +00:00
RefactoringTest.cpp s/LLVM_ON_WIN32/_WIN32/, clang 2018-04-27 19:11:14 +00:00
ReplacementTest.h clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
ReplacementsYamlTest.cpp [clang-tidy] Add check name to YAML export 2017-01-03 14:35:47 +00:00
RewriterTest.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
RewriterTestContext.h
TestVisitor.h Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
ToolingTest.cpp IWYU for llvm-config.h in clang. See r331124 for details. 2018-04-30 13:52:15 +00:00