Searched refs:FunctionScopes (Results 1 – 8 of 8) sorted by relevance
127 FunctionScopes.push_back(new FunctionScopeInfo(Diags)); in Sema()267 for (unsigned I = 1, E = FunctionScopes.size(); I != E; ++I) in ~Sema()268 delete FunctionScopes[I]; in ~Sema()269 if (FunctionScopes.size() == 1) in ~Sema()270 delete FunctionScopes[0]; in ~Sema()1128 if (FunctionScopes.size() == 1) { in PushFunctionScope()1131 FunctionScopes.back()->Clear(); in PushFunctionScope()1132 FunctionScopes.push_back(FunctionScopes.back()); in PushFunctionScope()1136 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()1140 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()[all …]
64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument71 FunctionScopes[FunctionScopes.size() - 1]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()79 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()81 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()85 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()127 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()171 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument177 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()183 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()189 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]); in getStackIndexOfNearestEnclosingCaptureCapableLambda()[all …]
208 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()227 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()229 dyn_cast<sema::LambdaScopeInfo>(FunctionScopes[N-1])) { in DiagnoseUnexpandedParameterPacks()
2955 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()2957 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()2958 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()3324 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()3326 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()3327 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
906 *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in CheckCXXThisCapture()911 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()946 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()953 = dyn_cast<CapturedRegionScopeInfo>(FunctionScopes[idx])) in CheckCXXThisCapture()6320 S.FunctionScopes.data(), S.FunctionScopes.size()); in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
11569 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()13015 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()13019 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()13069 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()13281 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]); in tryCaptureVariable()13784 FunctionScopes.back()->PossiblyUnreachableDiags. in DiagRuntimeBehavior()
31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
434 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable1168 return FunctionScopes.back(); in getCurFunction()1172 if (FunctionScopes.empty()) in getEnclosingFunction()1175 for (int e = FunctionScopes.size()-1; e >= 0; --e) { in getEnclosingFunction()1176 if (isa<sema::BlockScopeInfo>(FunctionScopes[e])) in getEnclosingFunction()1178 return FunctionScopes[e]; in getEnclosingFunction()