Searched refs:LambdaScopeInfo (Results 1 – 17 of 17) sorted by relevance
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLambda.cpp | 82 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 D | ScopeInfo.cpp | 235 void LambdaScopeInfo::visitPotentialCaptures( in visitPotentialCaptures() 251 bool LambdaScopeInfo::lambdaCaptureShouldBeConst() const { in lambdaCaptureShouldBeConst()
|
| H A D | Sema.cpp | 2348 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 D | SemaExprCXX.cpp | 1102 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 D | SemaExpr.cpp | 4523 (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 D | SemaCUDA.cpp | 1111 sema::LambdaScopeInfo *LambdaInfo = SemaRef.getCurLambda(); in recordPotentialODRUsedVariable()
|
| H A D | SemaTemplateVariadic.cpp | 351 if (isa<sema::LambdaScopeInfo>(SI)) in isUnexpandedParameterPackPermitted()
|
| H A D | SemaStmt.cpp | 3528 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt() 3808 const LambdaScopeInfo *LambdaSI = getCurLambda(); in DeduceFunctionTypeFromReturnExpr()
|
| H A D | SemaConcept.cpp | 128 !dyn_cast_if_present<LambdaScopeInfo>(getCurFunction())) || in CheckConstraintExpression()
|
| H A D | SemaDecl.cpp | 8310 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 D | SemaTemplateInstantiate.cpp | 1754 ComputeLambdaDependency(LambdaScopeInfo *LSI) { in ComputeLambdaDependency() 1789 LambdaScopeInfo *LSI) { in RebuildLambdaExpr()
|
| H A D | AnalysisBasedWarnings.cpp | 1601 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 5104 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(getFunctionScopes().back()); in addInstantiatedLocalVarsToScope()
|
| H A D | TreeTransform.h | 778 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 D | SemaTemplate.cpp | 71 if (auto *LSI = dyn_cast<LambdaScopeInfo>(FSI)) { in getTemplateDepth()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 867 class LambdaScopeInfo final : 955 LambdaScopeInfo(DiagnosticsEngine &Diag) in LambdaScopeInfo() function
|
| H A D | Sema.h | 206 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);
|