Lines Matching refs:LSI

3536   else if (const LambdaScopeInfo *LSI = getCurLambda())  in BuildPredefinedExpr()  local
3537 currentDecl = LSI->CallOperator; in BuildPredefinedExpr()
4620 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateUnaryExprOrTypeTraitExpr() local
4621 DC = LSI->CallOperator; in CreateUnaryExprOrTypeTraitExpr()
5848 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateBuiltinArraySubscriptExpr() local
5849 DC = LSI->CallOperator; in CreateBuiltinArraySubscriptExpr()
18839 static bool captureInLambda(LambdaScopeInfo *LSI, ValueDecl *Var, in captureInLambda() argument
18851 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda()
18932 if (!LSI->Mutable && !CaptureType->isReferenceType()) in captureInLambda()
18938 LSI->addCapture(Var, /*isBlock=*/false, ByRef, RefersToCapturedVariable, in captureInLambda()
18970 static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI, in buildLambdaCaptureFixit() argument
18972 assert(LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None); in buildLambdaCaptureFixit()
18978 StringRef Separator = LSI->NumExplicitCaptures > 0 ? ", " : ""; in buildLambdaCaptureFixit()
18980 SourceLocation VarInsertLoc = LSI->IntroducerRange.getEnd(); in buildLambdaCaptureFixit()
19003 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
19011 LSI->IntroducerRange.getBegin().getLocWithOffset(1); in buildLambdaCaptureFixit()
19017 if (LSI->isCXXThisCaptured() && !Sema.getLangOpts().CPlusPlus20) in buildLambdaCaptureFixit()
19019 ? LSI->getCXXThisCapture().isCopyCapture() in buildLambdaCaptureFixit()
19023 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
19035 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
19138 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
19139 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None) { in tryCaptureVariable()
19142 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl); in tryCaptureVariable()
19143 buildLambdaCaptureFixit(*this, LSI, Var); in tryCaptureVariable()
19222 auto *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
19223 if (LSI->Lambda) { in tryCaptureVariable()
19224 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl); in tryCaptureVariable()
19225 buildLambdaCaptureFixit(*this, LSI, Var); in tryCaptureVariable()
19279 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
19281 !captureInLambda(LSI, Var, ExprLoc, BuildAndDiagnose, CaptureType, in tryCaptureVariable()
19425 if (LambdaScopeInfo *LSI = S.getCurLambda()) in rebuildPotentialResultsAsNonOdrUsed() local
19426 LSI->markVariableExprAsNonODRUsed(E); in rebuildPotentialResultsAsNonOdrUsed()
19742 LambdaScopeInfo *const LSI = in DoMarkPotentialCapture() local
19744 if (LSI && (!LSI->CallOperator || in DoMarkPotentialCapture()
19745 !LSI->CallOperator->Encloses(Var->getDeclContext()))) { in DoMarkPotentialCapture()
19759 LSI->addPotentialCapture(E->IgnoreParens()); in DoMarkPotentialCapture()