Lines Matching defs:LSI
1152 // a Lambda (i.e. LambdaScopeInfo) AND each LSI's 'closure-type' is lexically
1153 // enclosed by the call-operator of the LSI below it on the stack (while
1154 // tracking the enclosing DC for step 2 if needed). Note the topmost LSI on
1157 // 2) If we run out of enclosing LSI's, check if the enclosing DeclContext
1159 // a generic lambda's call operator (represented by the Current LSI, and
1160 // should be the only scenario where an inconsistency between the LSI and the
1191 "run out of enclosing LSI's, yet the enclosing DC is a "
1192 "lambda-call-operator we must be (i.e. Current LSI) in a generic "
1291 static void buildLambdaThisCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI) {
1292 SourceLocation DiagLoc = LSI->IntroducerRange.getEnd();
1293 assert(!LSI->isCXXThisCaptured());
1295 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_LambdaByval &&
1300 DiagLoc, LSI->NumExplicitCaptures > 0 ? ", this" : "this");
1348 LambdaScopeInfo *LSI = dyn_cast<LambdaScopeInfo>(CSI);
1349 if (LSI && isGenericLambdaCallOperatorSpecialization(LSI->CallOperator)) {
1352 LSI->CallOperator->setInvalidDecl();
1356 buildLambdaThisCaptureFixit(*this, LSI);
1375 LSI->CallOperator->setInvalidDecl();
1380 buildLambdaThisCaptureFixit(*this, LSI);
1470 auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope);
1471 if (!LSI)
1474 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext) &&
1475 LSI->AfterParameterList)
1482 if (LSI->isCXXThisCaptured()) {
1483 if (!LSI->getCXXThisCapture().isCopyCapture())
1486 const auto *MD = LSI->CallOperator;