Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp599 for (sema::FunctionScopeInfo *FSI : FunctionScopes) in ~Sema()
2331 if (FunctionScopes.empty() && CachedFunctionScope) { in PushFunctionScope()
2334 FunctionScopes.push_back(CachedFunctionScope.release()); in PushFunctionScope()
2336 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
2343 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()
2350 FunctionScopes.push_back(LSI); in PushLambdaScope()
2444 assert(!FunctionScopes.empty() && "mismatched push/pop!"); in PopFunctionScopeInfo()
2446 markEscapingByrefs(*FunctionScopes.back(), *this); in PopFunctionScopeInfo()
2448 PoppedFunctionScopePtr Scope(FunctionScopes.pop_back_val(), in PopFunctionScopeInfo()
2493 if (!FunctionScopes.empty()) in setFunctionHasBranchIntoScope()
[all …]
H A DSemaLambda.cpp71 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument
77 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
79 FunctionScopes[CurScopeIndex])) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
82 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
91 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
95 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
137 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
181 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument
187 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
193 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()
[all …]
H A DSemaTemplateVariadic.cpp350 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()
397 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
398 sema::FunctionScopeInfo *Func = FunctionScopes[N-1]; in DiagnoseUnexpandedParameterPacks()
H A DSemaExprCXX.cpp1098 ArrayRef<FunctionScopeInfo *> FunctionScopes, QualType ThisTy, in adjustCVQualifiersForCXXThisWithinLambda() argument
1141 for (int I = FunctionScopes.size(); 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()
1230 return adjustCVQualifiersForCXXThisWithinLambda(FunctionScopes, ThisTy, in getCurrentThisType()
1289 : FunctionScopes.size() - 1; in CheckCXXThisCapture()
1317 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1372 isa<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture()
1378 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
[all …]
H A DSemaAvailability.cpp1102 if (FunctionScopes.empty()) in getCurFunctionAvailabilityContext()
1109 return FunctionScopes.front(); in getCurFunctionAvailabilityContext()
H A DSemaStmt.cpp3681 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3683 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()
3684 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()
4177 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
4179 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()
4180 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
H A DSemaExpr.cpp4651 if (ExprType->isVariablyModifiedType() && FunctionScopes.size() > 1) { in CheckUnaryExprOrTypeTraitOperand()
4653 for (auto I = FunctionScopes.rbegin(), in CheckUnaryExprOrTypeTraitOperand()
4654 E = std::prev(FunctionScopes.rend()); in CheckUnaryExprOrTypeTraitOperand()
5370 FunctionScopes.size() > 1) { in CreateBuiltinArraySubscriptExpr()
5373 for (auto I = FunctionScopes.rbegin(), in CreateBuiltinArraySubscriptExpr()
5374 E = std::prev(FunctionScopes.rend()); in CreateBuiltinArraySubscriptExpr()
16459 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
19172 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
19176 assert(!FunctionScopes.empty() && "No function scopes to stop at?"); in tryCaptureVariable()
19177 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
[all …]
H A DSemaOpenMP.cpp488 for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) { in popFunction()
2366 llvm::reverse(SemaRef.FunctionScopes), in isOpenMPCapturedDecl()
2367 CheckScopeInfo ? (SemaRef.FunctionScopes.size() - (StopAt + 1)) in isOpenMPCapturedDecl()
2397 FunctionScopeInfo *FSI = SemaRef.FunctionScopes[I - 1]; in isOpenMPCapturedDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaLambda.h35 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DSema.h1207 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
1299 return FunctionScopes.empty() ? nullptr : FunctionScopes.back(); in getCurFunction()
3483 S.FunctionScopesStart = S.FunctionScopes.size(); in S()
11274 return llvm::ArrayRef(FunctionScopes.begin() + FunctionScopesStart, in getFunctionScopes()
11275 FunctionScopes.end()); in getFunctionScopes()