Lines Matching refs:LSI
3532 else if (const LambdaScopeInfo *LSI = getCurLambda()) in BuildPredefinedExpr() local
3533 currentDecl = LSI->CallOperator; in BuildPredefinedExpr()
4615 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateUnaryExprOrTypeTraitExpr() local
4616 DC = LSI->CallOperator; in CreateUnaryExprOrTypeTraitExpr()
5838 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateBuiltinArraySubscriptExpr() local
5839 DC = LSI->CallOperator; in CreateBuiltinArraySubscriptExpr()
18514 static bool captureInLambda(LambdaScopeInfo *LSI, in captureInLambda() argument
18530 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda()
18601 if (!LSI->Mutable && !CaptureType->isReferenceType()) in captureInLambda()
18607 LSI->addCapture(Var, /*isBlock=*/false, ByRef, RefersToCapturedVariable, in captureInLambda()
18638 static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI, in buildLambdaCaptureFixit() argument
18640 assert(LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None); in buildLambdaCaptureFixit()
18646 StringRef Separator = LSI->NumExplicitCaptures > 0 ? ", " : ""; in buildLambdaCaptureFixit()
18648 SourceLocation VarInsertLoc = LSI->IntroducerRange.getEnd(); in buildLambdaCaptureFixit()
18671 if (llvm::any_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
18679 LSI->IntroducerRange.getBegin().getLocWithOffset(1); in buildLambdaCaptureFixit()
18685 if (LSI->isCXXThisCaptured() && !Sema.getLangOpts().CPlusPlus20) in buildLambdaCaptureFixit()
18687 ? LSI->getCXXThisCapture().isCopyCapture() in buildLambdaCaptureFixit()
18691 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
18703 if (llvm::none_of(LSI->Captures, [](Capture &C) { in buildLambdaCaptureFixit()
18798 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
18799 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None) { in tryCaptureVariable()
18802 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl); in tryCaptureVariable()
18803 buildLambdaCaptureFixit(*this, LSI, Var); in tryCaptureVariable()
18882 auto *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
18883 if (LSI->Lambda) { in tryCaptureVariable()
18884 Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl); in tryCaptureVariable()
18885 buildLambdaCaptureFixit(*this, LSI, Var); in tryCaptureVariable()
18939 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(CSI); in tryCaptureVariable() local
18941 !captureInLambda(LSI, Var, ExprLoc, BuildAndDiagnose, CaptureType, in tryCaptureVariable()
19085 if (LambdaScopeInfo *LSI = S.getCurLambda()) in rebuildPotentialResultsAsNonOdrUsed() local
19086 LSI->markVariableExprAsNonODRUsed(E); in rebuildPotentialResultsAsNonOdrUsed()
19542 LambdaScopeInfo *const LSI = in DoMarkVarDeclReferenced() local
19544 if (LSI && (!LSI->CallOperator || in DoMarkVarDeclReferenced()
19545 !LSI->CallOperator->Encloses(Var->getDeclContext()))) { in DoMarkVarDeclReferenced()
19559 LSI->addPotentialCapture(E->IgnoreParens()); in DoMarkVarDeclReferenced()