Home
last modified time | relevance | path

Searched refs:LambdaScopeInfo (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp82 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
91 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
94 const clang::sema::LambdaScopeInfo *LSI = in getStackIndexOfNearestEnclosingCaptureReadyLambda()
95 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
123 if (LSI->ImpCaptureStyle == sema::LambdaScopeInfo::ImpCap_None) { in getStackIndexOfNearestEnclosingCaptureReadyLambda()
198 const sema::LambdaScopeInfo *const CaptureReadyLambdaLSI = in getStackIndexOfNearestEnclosingCaptureCapableLambda()
199 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]); in getStackIndexOfNearestEnclosingCaptureCapableLambda()
234 getGenericLambdaTemplateParameterList(LambdaScopeInfo *LSI, Sema &SemaRef) { in getGenericLambdaTemplateParameterList()
529 static void buildLambdaScopeReturnType(Sema &S, LambdaScopeInfo *LSI, in buildLambdaScopeReturnType()
543 void Sema::buildLambdaScope(LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator, in buildLambdaScope()
[all …]
H A DScopeInfo.cpp235 void LambdaScopeInfo::visitPotentialCaptures( in visitPotentialCaptures()
251 bool LambdaScopeInfo::lambdaCaptureShouldBeConst() const { in lambdaCaptureShouldBeConst()
H A DSema.cpp2348 LambdaScopeInfo *Sema::PushLambdaScope() { in PushLambdaScope()
2349 LambdaScopeInfo *const LSI = new LambdaScopeInfo(getDiagnostics()); in PushLambdaScope()
2356 if (LambdaScopeInfo *const LSI = getCurLambda()) { in RecordParsingTemplateParameterDepth()
2542 auto *LSI = dyn_cast<LambdaScopeInfo>(CSI); in getEnclosingLambdaOrBlock()
2557 LambdaScopeInfo *Sema::getCurLambda(bool IgnoreNonLambdaCapturingScope) { in getCurLambda()
2564 while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I)) in getCurLambda()
2569 auto *CurLSI = dyn_cast<LambdaScopeInfo>(*I); in getCurLambda()
2582 LambdaScopeInfo *Sema::getCurGenericLambda() { in getCurGenericLambda()
2583 if (LambdaScopeInfo *LSI = getCurLambda()) { in getCurGenericLambda()
H A DSemaExprCXX.cpp1102 LambdaScopeInfo *CurLSI = nullptr; in adjustCVQualifiersForCXXThisWithinLambda()
1142 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) && in adjustCVQualifiersForCXXThisWithinLambda()
1144 cast<LambdaScopeInfo>(FunctionScopes[I])->CallOperator); in adjustCVQualifiersForCXXThisWithinLambda()
1146 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
1266 static void buildLambdaThisCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI) { in buildLambdaThisCaptureFixit()
1323 LambdaScopeInfo *LSI = dyn_cast<LambdaScopeInfo>(CSI); in CheckCXXThisCapture()
1372 isa<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture()
1445 auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope); in MarkThisReferenced()
7580 Expr *const FE, LambdaScopeInfo *const CurrentLSI, Sema &S) { in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
7733 LambdaScopeInfo *const CurrentLSI = in ActOnFinishFullExpr()
H A DSemaExpr.cpp4523 (isa<CapturedRegionScopeInfo>(CSI) || isa<LambdaScopeInfo>(CSI))) in captureVariablyModifiedType()
4660 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CheckUnaryExprOrTypeTraitOperand()
5380 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateBuiltinArraySubscriptExpr()
6446 LambdaScopeInfo *const CurLSI = S.getCurLambda(); in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
18708 !(isa<LambdaScopeInfo>(CSI) && in isVariableAlreadyCapturedInScopeInfo()
18709 !cast<LambdaScopeInfo>(CSI)->lambdaCaptureShouldBeConst()) && in isVariableAlreadyCapturedInScopeInfo()
18747 bool IsLambda = isa<LambdaScopeInfo>(CSI); in isVariableCapturable()
18927 static bool captureInLambda(LambdaScopeInfo *LSI, ValueDecl *Var, in captureInLambda()
18939 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda()
19060 static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI, in buildLambdaCaptureFixit()
[all …]
H A DSemaCUDA.cpp1111 sema::LambdaScopeInfo *LambdaInfo = SemaRef.getCurLambda(); in recordPotentialODRUsedVariable()
H A DSemaTemplateVariadic.cpp351 if (isa<sema::LambdaScopeInfo>(SI)) in isUnexpandedParameterPackPermitted()
H A DSemaStmt.cpp3528 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3808 const LambdaScopeInfo *LambdaSI = getCurLambda(); in DeduceFunctionTypeFromReturnExpr()
H A DSemaConcept.cpp128 !dyn_cast_if_present<LambdaScopeInfo>(getCurFunction())) || in CheckConstraintExpression()
H A DSemaDecl.cpp8310 static SourceLocation getCaptureLocation(const LambdaScopeInfo *LSI, in getCaptureLocation()
8409 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
8421 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
8432 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
8490 void Sema::DiagnoseShadowingLambdaDecls(const LambdaScopeInfo *LSI) { in DiagnoseShadowingLambdaDecls()
15312 if (LambdaScopeInfo *LSI = S.getCurLambda()) in CheckExplicitObjectParameter()
15794 LambdaScopeInfo *Sema::RebuildLambdaScopeInfo(CXXMethodDecl *CallOperator) { in RebuildLambdaScopeInfo()
15797 LambdaScopeInfo *LSI = PushLambdaScope(); in RebuildLambdaScopeInfo()
H A DSemaTemplateInstantiate.cpp1754 ComputeLambdaDependency(LambdaScopeInfo *LSI) { in ComputeLambdaDependency()
1789 LambdaScopeInfo *LSI) { in RebuildLambdaExpr()
H A DAnalysisBasedWarnings.cpp1601 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
H A DSemaTemplateInstantiateDecl.cpp5104 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(getFunctionScopes().back()); in addInstantiatedLocalVarsToScope()
H A DTreeTransform.h778 ComputeLambdaDependency(LambdaScopeInfo *LSI) { in ComputeLambdaDependency()
4062 LambdaScopeInfo *LSI) { in RebuildLambdaExpr()
8577 LambdaScopeInfo *LSI = getSema().getCurLambda(); in TransformDeclStmt()
15481 LambdaScopeInfo *LSI = getSema().PushLambdaScope(); in TransformLambdaExpr()
H A DSemaTemplate.cpp71 if (auto *LSI = dyn_cast<LambdaScopeInfo>(FSI)) { in getTemplateDepth()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h867 class LambdaScopeInfo final :
955 LambdaScopeInfo(DiagnosticsEngine &Diag) in LambdaScopeInfo() function
H A DSema.h206 class LambdaScopeInfo; variable
1022 sema::LambdaScopeInfo *PushLambdaScope();
1085 sema::LambdaScopeInfo *
1089 sema::LambdaScopeInfo *getCurGenericLambda();
3928 void DiagnoseShadowingLambdaDecls(const sema::LambdaScopeInfo *LSI);
4644 sema::LambdaScopeInfo *RebuildLambdaScopeInfo(CXXMethodDecl *CallOperator);
9023 void buildLambdaScope(sema::LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator,
9075 void addInitCapture(sema::LambdaScopeInfo *LSI, VarDecl *Var, bool ByRef);
9079 void finishLambdaExplicitCaptures(sema::LambdaScopeInfo *LSI);
9143 sema::LambdaScopeInfo *LSI);