Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSema.cpp1381 if (FunctionScopes.empty()) { in PushFunctionScope()
1399 FunctionScopes.push_back(LSI); in PushLambdaScope()
1510 if (!FunctionScopes.empty()) in setFunctionHasBranchIntoScope()
1515 if (!FunctionScopes.empty()) in setFunctionHasBranchProtectedScope()
1520 if (!FunctionScopes.empty()) in setFunctionHasIndirectGoto()
1525 if (FunctionScopes.empty()) in getCurBlock()
1540 if (FunctionScopes.empty()) in getEnclosingFunction()
1546 return FunctionScopes[e]; in getEnclosingFunction()
1552 if (FunctionScopes.empty()) in getCurLambda()
1878 FunctionScopes.push_back(CSI); in PushCapturedRegionScope()
[all …]
H A DSemaLambda.cpp64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument
70 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
72 FunctionScopes[CurScopeIndex])) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
75 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
88 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
130 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
174 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument
180 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
186 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()
1169 LambdaScopeInfo *LSI = cast<LambdaScopeInfo>(FunctionScopes.back()); in ActOnLambdaError()
[all …]
H A DSemaTemplateVariadic.cpp282 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()
303 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
304 sema::FunctionScopeInfo *Func = FunctionScopes[N-1]; in DiagnoseUnexpandedParameterPacks()
316 if (N == FunctionScopes.size()) { in DiagnoseUnexpandedParameterPacks()
H A DSemaExprCXX.cpp951 ArrayRef<FunctionScopeInfo *> FunctionScopes, QualType ThisTy, in adjustCVQualifiersForCXXThisWithinLambda() argument
994 for (int I = FunctionScopes.size(); in adjustCVQualifiersForCXXThisWithinLambda()
995 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) && in adjustCVQualifiersForCXXThisWithinLambda()
999 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
1090 return adjustCVQualifiersForCXXThisWithinLambda(FunctionScopes, ThisTy, in getCurrentThisType()
1178 : FunctionScopes.size() - 1; in CheckCXXThisCapture()
1206 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1261 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
1272 = dyn_cast<CapturedRegionScopeInfo>(FunctionScopes[idx])) in CheckCXXThisCapture()
7453 S.FunctionScopes, Var, S)) { in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
[all …]
H A DSemaStmt.cpp3363 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3365 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()
3366 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()
3765 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
3767 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()
3768 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
H A DSemaExpr.cpp4042 if (T->isVariablyModifiedType() && FunctionScopes.size() > 1) { in CreateUnaryExprOrTypeTraitExpr()
4044 for (auto I = FunctionScopes.rbegin(), in CreateUnaryExprOrTypeTraitExpr()
4045 E = std::prev(FunctionScopes.rend()); in CreateUnaryExprOrTypeTraitExpr()
13692 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
15292 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
15296 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
15346 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()
15450 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]); in tryCaptureVariable()
15963 FunctionScopes.back()->PossiblyUnreachableDiags. in DiagRuntimeBehavior()
H A DSemaOpenMP.cpp265 for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) { in popFunction()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DSemaLambda.h35 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DSema.h552 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
1359 return FunctionScopes.empty() ? nullptr : FunctionScopes.back(); in getCurFunction()