Lines Matching defs:LSI
4570 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI))
4571 DC = LSI->CallOperator;
5282 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI))
5283 DC = LSI->CallOperator;
18481 static bool captureInLambda(LambdaScopeInfo *LSI, ValueDecl *Var,
18493 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref);
18570 bool Const = LSI->lambdaCaptureShouldBeConst();
18577 LSI->addCapture(Var, /*isBlock=*/false, ByRef, RefersToCapturedVariable,
18609 static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI,
18611 assert(LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None);
18617 StringRef Separator = LSI->NumExplicitCaptures > 0 ? ", " : "";
18619 SourceLocation VarInsertLoc = LSI->IntroducerRange.getEnd();
18642 if (llvm::any_of(LSI->Captures, [](Capture &C) {
18650 LSI->IntroducerRange.getBegin().getLocWithOffset(1);
18656 if (LSI->isCXXThisCaptured() && !Sema.getLangOpts().CPlusPlus20)
18658 ? LSI->getCXXThisCapture().isCopyCapture()
18662 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) {
18674 if (llvm::none_of(LSI->Captures, [](Capture &C) {
18758 LambdaScopeInfo *LSI = nullptr;
18760 LSI = dyn_cast_or_null<LambdaScopeInfo>(
18764 !LSI || LSI->AfterParameterList || CurContext == LSI->CallOperator;
18766 if (LSI && !LSI->AfterParameterList) {
18819 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI);
18820 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None) {
18823 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl);
18824 buildLambdaCaptureFixit(*this, LSI, Var);
18913 auto *LSI = cast<LambdaScopeInfo>(CSI);
18914 if (LSI->Lambda) {
18915 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl);
18916 buildLambdaCaptureFixit(*this, LSI, Var);
18970 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI);
18972 !captureInLambda(LSI, Var, ExprLoc, BuildAndDiagnose, CaptureType,
19116 if (LambdaScopeInfo *LSI = S.getCurLambda())
19117 LSI->markVariableExprAsNonODRUsed(E);
19438 LambdaScopeInfo *const LSI =
19440 if (LSI && (!LSI->CallOperator ||
19441 !LSI->CallOperator->Encloses(Var->getDeclContext()))) {
19455 LSI->addPotentialCapture(E->IgnoreParens());
19672 auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope);
19673 if (!LSI)
19676 if (LSI->Lambda && !LSI->Lambda->Encloses(SemaRef.CurContext) &&
19677 LSI->AfterParameterList)
19680 const auto *MD = LSI->CallOperator;
19689 if (auto *C = LSI->CaptureMap.count(D) ? &LSI->getCapture(D) : nullptr) {
19695 if (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByval)