• Home
  • Raw
  • Download

Lines Matching refs:LSI

84     const clang::sema::LambdaScopeInfo *LSI =  in getStackIndexOfNearestEnclosingCaptureReadyLambda()  local
113 if (LSI->ImpCaptureStyle == sema::LambdaScopeInfo::ImpCap_None) { in getStackIndexOfNearestEnclosingCaptureReadyLambda()
114 if (IsCapturingVariable && !LSI->isCaptured(VarToCapture)) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
116 if (IsCapturingThis && !LSI->isCXXThisCaptured()) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
225 getGenericLambdaTemplateParameterList(LambdaScopeInfo *LSI, Sema &SemaRef) { in getGenericLambdaTemplateParameterList() argument
226 if (LSI->GLTemplateParameterList) in getGenericLambdaTemplateParameterList()
227 return LSI->GLTemplateParameterList; in getGenericLambdaTemplateParameterList()
229 if (LSI->AutoTemplateParams.size()) { in getGenericLambdaTemplateParameterList()
230 SourceRange IntroRange = LSI->IntroducerRange; in getGenericLambdaTemplateParameterList()
233 LSI->GLTemplateParameterList = TemplateParameterList::Create( in getGenericLambdaTemplateParameterList()
236 (NamedDecl **)LSI->AutoTemplateParams.data(), in getGenericLambdaTemplateParameterList()
237 LSI->AutoTemplateParams.size(), RAngleLoc); in getGenericLambdaTemplateParameterList()
239 return LSI->GLTemplateParameterList; in getGenericLambdaTemplateParameterList()
435 void Sema::buildLambdaScope(LambdaScopeInfo *LSI, in buildLambdaScope() argument
443 LSI->CallOperator = CallOperator; in buildLambdaScope()
445 LSI->Lambda = LambdaClass; in buildLambdaScope()
447 LSI->ImpCaptureStyle = LambdaScopeInfo::ImpCap_LambdaByval; in buildLambdaScope()
449 LSI->ImpCaptureStyle = LambdaScopeInfo::ImpCap_LambdaByref; in buildLambdaScope()
450 LSI->CaptureDefaultLoc = CaptureDefaultLoc; in buildLambdaScope()
451 LSI->IntroducerRange = IntroducerRange; in buildLambdaScope()
452 LSI->ExplicitParams = ExplicitParams; in buildLambdaScope()
453 LSI->Mutable = Mutable; in buildLambdaScope()
456 LSI->ReturnType = CallOperator->getReturnType(); in buildLambdaScope()
458 if (!LSI->ReturnType->isDependentType() && in buildLambdaScope()
459 !LSI->ReturnType->isVoidType()) { in buildLambdaScope()
460 if (RequireCompleteType(CallOperator->getLocStart(), LSI->ReturnType, in buildLambdaScope()
466 LSI->HasImplicitReturnType = true; in buildLambdaScope()
470 void Sema::finishLambdaExplicitCaptures(LambdaScopeInfo *LSI) { in finishLambdaExplicitCaptures() argument
471 LSI->finishedExplicitCaptures(); in finishLambdaExplicitCaptures()
786 FieldDecl *Sema::buildInitCaptureField(LambdaScopeInfo *LSI, VarDecl *Var) { in buildInitCaptureField() argument
788 Context, LSI->Lambda, Var->getLocation(), Var->getLocation(), in buildInitCaptureField()
793 LSI->Lambda->addDecl(Field); in buildInitCaptureField()
795 LSI->addCapture(Var, /*isBlock*/false, Var->getType()->isReferenceType(), in buildInitCaptureField()
807 LambdaScopeInfo *const LSI = getCurLambda(); in ActOnStartOfLambdaDefinition() local
808 assert(LSI && "LambdaScopeInfo should be on stack!"); in ActOnStartOfLambdaDefinition()
810 getGenericLambdaTemplateParameterList(LSI, *this); in ActOnStartOfLambdaDefinition()
896 buildLambdaScope(LSI, Method, Intro.Range, Intro.Default, Intro.DefaultLoc, in ActOnStartOfLambdaDefinition()
928 if (LSI->isCXXThisCaptured()) { in ActOnStartOfLambdaDefinition()
930 << "'this'" << SourceRange(LSI->getCXXThisCapture().getLocation()) in ActOnStartOfLambdaDefinition()
1048 if (Var && LSI->isCaptured(Var)) { in ActOnStartOfLambdaDefinition()
1050 << C->Id << SourceRange(LSI->getCapture(Var).getLocation()) in ActOnStartOfLambdaDefinition()
1096 buildInitCaptureField(LSI, Var); in ActOnStartOfLambdaDefinition()
1103 finishLambdaExplicitCaptures(LSI); in ActOnStartOfLambdaDefinition()
1105 LSI->ContainsUnexpandedParameterPack = ContainsUnexpandedParameterPack; in ActOnStartOfLambdaDefinition()
1117 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(FunctionScopes.back()); in ActOnLambdaError() local
1128 CXXRecordDecl *Class = LSI->Lambda; in ActOnLambdaError()
1461 LambdaScopeInfo LSI = *cast<LambdaScopeInfo>(FunctionScopes.back()); in ActOnLambdaExpr() local
1462 ActOnFinishFunctionBody(LSI.CallOperator, Body); in ActOnLambdaExpr()
1463 return BuildLambdaExpr(StartLoc, Body->getLocEnd(), &LSI); in ActOnLambdaExpr()
1483 LambdaScopeInfo *LSI) { in BuildLambdaExpr() argument
1487 SourceLocation CaptureDefaultLoc = LSI->CaptureDefaultLoc; in BuildLambdaExpr()
1489 mapImplicitCaptureStyle(LSI->ImpCaptureStyle); in BuildLambdaExpr()
1500 CallOperator = LSI->CallOperator; in BuildLambdaExpr()
1501 Class = LSI->Lambda; in BuildLambdaExpr()
1502 IntroducerRange = LSI->IntroducerRange; in BuildLambdaExpr()
1503 ExplicitParams = LSI->ExplicitParams; in BuildLambdaExpr()
1504 ExplicitResultType = !LSI->HasImplicitReturnType; in BuildLambdaExpr()
1505 LambdaExprNeedsCleanups = LSI->ExprNeedsCleanups; in BuildLambdaExpr()
1506 ContainsUnexpandedParameterPack = LSI->ContainsUnexpandedParameterPack; in BuildLambdaExpr()
1521 for (unsigned I = 0, N = LSI->Captures.size(); I != N; ++I, ++CurField) { in BuildLambdaExpr()
1522 LambdaScopeInfo::Capture From = LSI->Captures[I]; in BuildLambdaExpr()
1524 bool IsImplicit = I >= LSI->NumExplicitCaptures; in BuildLambdaExpr()