Lines Matching refs:LSI

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