Searched refs:LambdaScopeInfo (Results 1 – 16 of 16) sorted by relevance
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaLambda.cpp | 80 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda() 89 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda() 92 const clang::sema::LambdaScopeInfo *LSI = in getStackIndexOfNearestEnclosingCaptureReadyLambda() 93 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda() 121 if (LSI->ImpCaptureStyle == sema::LambdaScopeInfo::ImpCap_None) { in getStackIndexOfNearestEnclosingCaptureReadyLambda() 197 const sema::LambdaScopeInfo *const CaptureReadyLambdaLSI = in getStackIndexOfNearestEnclosingCaptureCapableLambda() 198 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]); in getStackIndexOfNearestEnclosingCaptureCapableLambda() 234 getGenericLambdaTemplateParameterList(LambdaScopeInfo *LSI, Sema &SemaRef) { in getGenericLambdaTemplateParameterList() 508 static void buildLambdaScopeReturnType(Sema &S, LambdaScopeInfo *LSI, in buildLambdaScopeReturnType() 522 void Sema::buildLambdaScope(LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator, in buildLambdaScope() [all …]
|
H A D | ScopeInfo.cpp | 236 void LambdaScopeInfo::visitPotentialCaptures( in visitPotentialCaptures() 252 bool LambdaScopeInfo::lambdaCaptureShouldBeConst() const { in lambdaCaptureShouldBeConst()
|
H A D | Sema.cpp | 2182 LambdaScopeInfo *Sema::PushLambdaScope() { in PushLambdaScope() 2183 LambdaScopeInfo *const LSI = new LambdaScopeInfo(getDiagnostics()); in PushLambdaScope() 2190 if (LambdaScopeInfo *const LSI = getCurLambda()) { in RecordParsingTemplateParameterDepth() 2372 LambdaScopeInfo *Sema::getEnclosingLambda() const { in getEnclosingLambda() 2374 if (auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope)) { in getEnclosingLambda() 2389 LambdaScopeInfo *Sema::getCurLambda(bool IgnoreNonLambdaCapturingScope) { in getCurLambda() 2396 while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I)) in getCurLambda() 2401 auto *CurLSI = dyn_cast<LambdaScopeInfo>(*I); in getCurLambda() 2414 LambdaScopeInfo *Sema::getCurGenericLambda() { in getCurGenericLambda() 2415 if (LambdaScopeInfo *LSI = getCurLambda()) { in getCurGenericLambda()
|
H A D | SemaExprCXX.cpp | 1120 LambdaScopeInfo *CurLSI = nullptr; in adjustCVQualifiersForCXXThisWithinLambda() 1160 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) && in adjustCVQualifiersForCXXThisWithinLambda() 1162 cast<LambdaScopeInfo>(FunctionScopes[I])->CallOperator); in adjustCVQualifiersForCXXThisWithinLambda() 1164 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda() 1284 static void buildLambdaThisCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI) { in buildLambdaThisCaptureFixit() 1341 LambdaScopeInfo *LSI = dyn_cast<LambdaScopeInfo>(CSI); in CheckCXXThisCapture() 1390 isa<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture() 1463 auto *LSI = dyn_cast<sema::LambdaScopeInfo>(Scope); in MarkThisReferenced() 8558 Expr *const FE, LambdaScopeInfo *const CurrentLSI, Sema &S) { in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures() 9124 LambdaScopeInfo *const CurrentLSI = in ActOnFinishFullExpr()
|
H A D | SemaExpr.cpp | 4443 (isa<CapturedRegionScopeInfo>(CSI) || isa<LambdaScopeInfo>(CSI))) in captureVariablyModifiedType() 4570 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CheckUnaryExprOrTypeTraitOperand() 5282 if (auto *LSI = dyn_cast<LambdaScopeInfo>(CSI)) in CreateBuiltinArraySubscriptExpr() 6304 LambdaScopeInfo *const CurLSI = S.getCurLambda(); in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs() 18262 !(isa<LambdaScopeInfo>(CSI) && in isVariableAlreadyCapturedInScopeInfo() 18263 !cast<LambdaScopeInfo>(CSI)->lambdaCaptureShouldBeConst()) && in isVariableAlreadyCapturedInScopeInfo() 18301 bool IsLambda = isa<LambdaScopeInfo>(CSI); in isVariableCapturable() 18481 static bool captureInLambda(LambdaScopeInfo *LSI, ValueDecl *Var, in captureInLambda() 18493 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda() 18609 static void buildLambdaCaptureFixit(Sema &Sema, LambdaScopeInfo *LSI, in buildLambdaCaptureFixit() [all …]
|
H A D | SemaTemplateVariadic.cpp | 295 if (isa<sema::LambdaScopeInfo>(SI)) in isUnexpandedParameterPackPermitted()
|
H A D | SemaStmt.cpp | 3420 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt() 3698 const LambdaScopeInfo *LambdaSI = getCurLambda(); in DeduceFunctionTypeFromReturnExpr()
|
H A D | SemaConcept.cpp | 130 !dyn_cast_if_present<LambdaScopeInfo>(getCurFunction())) || in CheckConstraintExpression()
|
H A D | SemaDecl.cpp | 8119 static SourceLocation getCaptureLocation(const LambdaScopeInfo *LSI, in getCaptureLocation() 8215 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow() 8227 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow() 8238 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow() 8291 void Sema::DiagnoseShadowingLambdaDecls(const LambdaScopeInfo *LSI) { in DiagnoseShadowingLambdaDecls() 14898 if (LambdaScopeInfo *LSI = S.getCurLambda()) in CheckExplicitObjectParameter() 15358 LambdaScopeInfo *Sema::RebuildLambdaScopeInfo(CXXMethodDecl *CallOperator) { in RebuildLambdaScopeInfo() 15361 LambdaScopeInfo *LSI = PushLambdaScope(); in RebuildLambdaScopeInfo()
|
H A D | AnalysisBasedWarnings.cpp | 1461 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
|
H A D | SemaTemplateInstantiateDecl.cpp | 4555 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(getFunctionScopes().back()); in addInstantiatedLocalVarsToScope()
|
H A D | SemaTemplateInstantiate.cpp | 1642 ComputeLambdaDependency(LambdaScopeInfo *LSI) { in ComputeLambdaDependency()
|
H A D | TreeTransform.h | 776 ComputeLambdaDependency(LambdaScopeInfo *LSI) { in ComputeLambdaDependency() 14360 LambdaScopeInfo *LSI = getSema().PushLambdaScope(); in TransformLambdaExpr()
|
H A D | SemaTemplate.cpp | 74 if (auto *LSI = dyn_cast<LambdaScopeInfo>(FSI)) { in getTemplateDepth()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | ScopeInfo.h | 861 class LambdaScopeInfo final : 952 LambdaScopeInfo(DiagnosticsEngine &Diag) in LambdaScopeInfo() function
|
H A D | Sema.h | 242 class LambdaScopeInfo; variable 721 sema::LambdaScopeInfo *PushLambdaScope(); 778 sema::LambdaScopeInfo *getEnclosingLambda() const; 784 sema::LambdaScopeInfo * 788 sema::LambdaScopeInfo *getCurGenericLambda(); 3500 void DiagnoseShadowingLambdaDecls(const sema::LambdaScopeInfo *LSI); 4258 sema::LambdaScopeInfo *RebuildLambdaScopeInfo(CXXMethodDecl *CallOperator); 8748 void buildLambdaScope(sema::LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator, 8797 void addInitCapture(sema::LambdaScopeInfo *LSI, VarDecl *Var, bool ByRef); 8801 void finishLambdaExplicitCaptures(sema::LambdaScopeInfo *LSI); [all …]
|