Lines Matching refs:Lambda
3058 // Pick the current block, lambda, captured statement or function.
3891 CapRecord = LSI->Lambda;
9670 // Decide whether the first capture was for a block or a lambda.
9672 // Decide whether the first capture was for a block or a lambda.
12848 // C++11 [expr.prim.lambda]p2:
12849 // A lambda-expression shall not appear in an unevaluated operand
12856 // evaluate [...] a lambda-expression.
12863 // during lambda expression creation.
12864 for (auto *Lambda : Rec.Lambdas) {
12865 for (auto *C : Lambda->capture_inits())
13195 // Similarly to mutable captures in lambda
13209 // Only block literals, captured statements, and lambda expressions can
13431 /// \brief Create a field within the lambda class for the variable
13437 CXXRecordDecl *Lambda = LSI->Lambda;
13441 = FieldDecl::Create(S.Context, Lambda, Loc, Loc, nullptr, FieldType,
13446 Lambda->addDecl(Field);
13449 /// \brief Capture the given variable in the lambda.
13472 // C++11 [expr.prim.lambda]p15:
13486 // C++11 [expr.prim.lambda]p14:
13501 // Forbid the lambda copy-capture of autoreleasing variables.
13504 S.Diag(Loc, diag::err_arc_autoreleasing_capture) << /*lambda*/ 1;
13525 // Capture this variable in the lambda.
13534 // C++ [expr.prim.lambda]p5:
13535 // The closure type for a lambda-expression has a public inline
13537 // declared const (9.3.1) if and only if the lambda-expression?s
13557 // declaration, but its parent DC is the lambda class.
13600 lambda expressions can
13625 // If we are instantiating a generic lambda call operator body,
13636 Diag(LSI->Lambda->getLocStart(), diag::note_lambda_decl);
13687 if (cast<LambdaScopeInfo>(CSI)->Lambda)
13688 Diag(cast<LambdaScopeInfo>(CSI)->Lambda->getLocStart(),
13690 // FIXME: If we error out because an outer lambda can not implicitly
13691 // capture a variable that an inner lambda explicitly captures, we
13692 // should have the inner lambda do the explicit capture - because
13695 // can not be captured by a lambda implicitly even though it is captured
13699 // - cache the StartingDeclContext - this must be a lambda
13700 // - captureInLambda in the innermost lambda the variable.
13710 // Walk back down the scope stack, (e.g. from outer lambda to inner lambda)
13714 // at the lambda nested within that one.
13805 // If we are in a lambda, check if this DeclRefExpr or MemberExpr refers