Lines Matching defs:LSI
1145 // a Lambda (i.e. LambdaScopeInfo) AND each LSI's 'closure-type' is lexically
1146 // enclosed by the call-operator of the LSI below it on the stack (while
1147 // tracking the enclosing DC for step 2 if needed). Note the topmost LSI on
1150 // 2) If we run out of enclosing LSI's, check if the enclosing DeclContext
1152 // a generic lambda's call operator (represented by the Current LSI, and
1153 // should be the only scenario where an inconsistency between the LSI and the
1184 "run out of enclosing LSI's, yet the enclosing DC is a "
1185 "lambda-call-operator we must be (i.e. Current LSI) in a generic "
1284 static void buildLambdaThisCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI) {
1285 SourceLocation DiagLoc = LSI->IntroducerRange.getEnd();
1286 assert(!LSI->isCXXThisCaptured());
1288 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_LambdaByval &&
1293 DiagLoc, LSI->NumExplicitCaptures > 0 ? ", this" : "this");
1341 LambdaScopeInfo *LSI = dyn_cast<LambdaScopeInfo>(CSI);
1342 if (LSI && isGenericLambdaCallOperatorSpecialization(LSI->CallOperator)) {
1345 LSI->CallOperator->setInvalidDecl();
1349 buildLambdaThisCaptureFixit(*this, LSI);
1368 LSI->CallOperator->setInvalidDecl();
1373 buildLambdaThisCaptureFixit(*this, LSI);
1463 auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope);
1464 if (!LSI)
1467 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext) &&
1468 LSI->AfterParameterList)
1475 if (LSI->isCXXThisCaptured()) {
1476 if (!LSI->getCXXThisCapture().isCopyCapture())
1479 const auto *MD = LSI->CallOperator;