clang/test/CXX/expr
Vedant Kumar d4e462f654 [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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342194 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-13 23:28:25 +00:00
..
expr.ass The 'constexpr implies const' rule for non-static member functions is gone in 2013-04-21 01:08:50 +00:00
expr.cast Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
expr.cond [c++1z] When initializing a const-qualified class type, don't forget to add on 2016-12-21 01:31:56 +00:00
expr.const Don't warn about runtime behavior problems in variable initializers that we 2017-09-23 18:27:11 +00:00
expr.mptr.oper Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
expr.post Fix determination of whether a reinterpret_cast casts away constness. 2018-07-10 23:04:35 +00:00
expr.prim [Sema] Remove location from implicit capture init expr 2018-09-13 23:28:25 +00:00
expr.unary P0620 follow-up: deducing `auto` from braced-init-list in new expr 2017-12-11 18:29:54 +00:00
p3.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
p8.cpp Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
p9.cpp Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
p10-0x.cpp Update Clang tests to handle explicitly typed load changes in LLVM. 2015-02-27 21:19:58 +00:00
p13.cpp [c++1z] P0003R5: Removing dynamic exception specifications. 2016-12-08 02:49:07 +00:00