Lines Matching refs:FunctionScopes
465 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()
2279 FunctionScopes.back()->setHasBranchIntoScope(); in setFunctionHasBranchIntoScope()
2283 if (!FunctionScopes.empty()) in setFunctionHasBranchProtectedScope()
2284 FunctionScopes.back()->setHasBranchProtectedScope(); in setFunctionHasBranchProtectedScope()
2288 if (!FunctionScopes.empty()) in setFunctionHasIndirectGoto()
2289 FunctionScopes.back()->setHasIndirectGoto(); in setFunctionHasIndirectGoto()
2293 if (!FunctionScopes.empty()) in setFunctionHasMustTail()
2294 FunctionScopes.back()->setHasMustTail(); in setFunctionHasMustTail()
2298 if (FunctionScopes.empty()) in getCurBlock()
2301 auto CurBSI = dyn_cast<BlockScopeInfo>(FunctionScopes.back()); in getCurBlock()
2313 if (FunctionScopes.empty()) in getEnclosingFunction()
2316 for (int e = FunctionScopes.size() - 1; e >= 0; --e) { in getEnclosingFunction()
2317 if (isa<sema::BlockScopeInfo>(FunctionScopes[e])) in getEnclosingFunction()
2319 return FunctionScopes[e]; in getEnclosingFunction()
2325 for (auto *Scope : llvm::reverse(FunctionScopes)) { in getEnclosingLambda()
2341 if (FunctionScopes.empty()) in getCurLambda()
2344 auto I = FunctionScopes.rbegin(); in getCurLambda()
2346 auto E = FunctionScopes.rend(); in getCurLambda()
2676 FunctionScopes.push_back(CSI); in PushCapturedRegionScope()
2680 if (FunctionScopes.empty()) in getCurCapturedRegion()
2683 return dyn_cast<CapturedRegionScopeInfo>(FunctionScopes.back()); in getCurCapturedRegion()