Home
last modified time | relevance | path

Searched refs:FunctionScopes (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSema.cpp465 for (sema::FunctionScopeInfo *FSI : FunctionScopes) in ~Sema()
2112 if (FunctionScopes.empty() && CachedFunctionScope) { in PushFunctionScope()
2115 FunctionScopes.push_back(CachedFunctionScope.release()); in PushFunctionScope()
2117 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
2124 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()
2130 FunctionScopes.push_back(LSI); in PushLambdaScope()
2230 assert(!FunctionScopes.empty() && "mismatched push/pop!"); in PopFunctionScopeInfo()
2232 markEscapingByrefs(*FunctionScopes.back(), *this); in PopFunctionScopeInfo()
2234 PoppedFunctionScopePtr Scope(FunctionScopes.pop_back_val(), in PopFunctionScopeInfo()
2278 if (!FunctionScopes.empty()) in setFunctionHasBranchIntoScope()
[all …]
H A DSemaLambda.cpp65 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument
71 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
73 FunctionScopes[CurScopeIndex])) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
76 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
85 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
89 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
131 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
176 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument
182 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
188 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()
[all …]
H A DSemaTemplateVariadic.cpp282 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()
329 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
330 sema::FunctionScopeInfo *Func = FunctionScopes[N-1]; in DiagnoseUnexpandedParameterPacks()
H A DSemaAvailability.cpp918 if (FunctionScopes.empty()) in getCurFunctionAvailabilityContext()
925 return FunctionScopes.front(); in getCurFunctionAvailabilityContext()
H A DSemaExprCXX.cpp1082 ArrayRef<FunctionScopeInfo *> FunctionScopes, QualType ThisTy, in adjustCVQualifiersForCXXThisWithinLambda() argument
1125 for (int I = FunctionScopes.size(); in adjustCVQualifiersForCXXThisWithinLambda()
1126 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) && in adjustCVQualifiersForCXXThisWithinLambda()
1128 cast<LambdaScopeInfo>(FunctionScopes[I])->CallOperator); in adjustCVQualifiersForCXXThisWithinLambda()
1130 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
1216 return adjustCVQualifiersForCXXThisWithinLambda(FunctionScopes, ThisTy, in getCurrentThisType()
1274 : FunctionScopes.size() - 1; in CheckCXXThisCapture()
1302 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1355 isa<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture()
1361 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
[all …]
H A DSemaStmt.cpp3728 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3730 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()
3731 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()
4187 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
4189 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()
4190 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
H A DSemaExpr.cpp4611 if (T->isVariablyModifiedType() && FunctionScopes.size() > 1) { in CreateUnaryExprOrTypeTraitExpr()
4613 for (auto I = FunctionScopes.rbegin(), in CreateUnaryExprOrTypeTraitExpr()
4614 E = std::prev(FunctionScopes.rend()); in CreateUnaryExprOrTypeTraitExpr()
5838 FunctionScopes.size() > 1) { in CreateBuiltinArraySubscriptExpr()
5841 for (auto I = FunctionScopes.rbegin(), in CreateBuiltinArraySubscriptExpr()
5842 E = std::prev(FunctionScopes.rend()); in CreateBuiltinArraySubscriptExpr()
16602 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
19064 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
19068 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
19122 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()
[all …]
H A DSemaOpenMP.cpp481 for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) { in popFunction()
2361 llvm::reverse(FunctionScopes), in isOpenMPCapturedDecl()
2362 CheckScopeInfo ? (FunctionScopes.size() - (StopAt + 1)) : 0)) { in isOpenMPCapturedDecl()
2391 FunctionScopeInfo *FSI = FunctionScopes[I - 1]; in isOpenMPCapturedDecl()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSemaLambda.h35 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DSema.h797 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
804 return llvm::ArrayRef(FunctionScopes.begin() + FunctionScopesStart, in getFunctionScopes()
805 FunctionScopes.end()); in getFunctionScopes()
1014 S.FunctionScopesStart = S.FunctionScopes.size(); in S()
1983 return FunctionScopes.empty() ? nullptr : FunctionScopes.back(); in getCurFunction()