Lines Matching refs:FunctionScopes

464   for (sema::FunctionScopeInfo *FSI : FunctionScopes)  in ~Sema()
2075 if (FunctionScopes.empty() && CachedFunctionScope) { in PushFunctionScope()
2078 FunctionScopes.push_back(CachedFunctionScope.release()); in PushFunctionScope()
2080 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
2087 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()
2093 FunctionScopes.push_back(LSI); in PushLambdaScope()
2193 assert(!FunctionScopes.empty() && "mismatched push/pop!"); in PopFunctionScopeInfo()
2195 markEscapingByrefs(*FunctionScopes.back(), *this); in PopFunctionScopeInfo()
2197 PoppedFunctionScopePtr Scope(FunctionScopes.pop_back_val(), in PopFunctionScopeInfo()
2241 if (!FunctionScopes.empty()) in setFunctionHasBranchIntoScope()
2242 FunctionScopes.back()->setHasBranchIntoScope(); in setFunctionHasBranchIntoScope()
2246 if (!FunctionScopes.empty()) in setFunctionHasBranchProtectedScope()
2247 FunctionScopes.back()->setHasBranchProtectedScope(); in setFunctionHasBranchProtectedScope()
2251 if (!FunctionScopes.empty()) in setFunctionHasIndirectGoto()
2252 FunctionScopes.back()->setHasIndirectGoto(); in setFunctionHasIndirectGoto()
2256 if (!FunctionScopes.empty()) in setFunctionHasMustTail()
2257 FunctionScopes.back()->setHasMustTail(); in setFunctionHasMustTail()
2261 if (FunctionScopes.empty()) in getCurBlock()
2264 auto CurBSI = dyn_cast<BlockScopeInfo>(FunctionScopes.back()); in getCurBlock()
2276 if (FunctionScopes.empty()) in getEnclosingFunction()
2279 for (int e = FunctionScopes.size() - 1; e >= 0; --e) { in getEnclosingFunction()
2280 if (isa<sema::BlockScopeInfo>(FunctionScopes[e])) in getEnclosingFunction()
2282 return FunctionScopes[e]; in getEnclosingFunction()
2288 for (auto *Scope : llvm::reverse(FunctionScopes)) { in getEnclosingLambda()
2304 if (FunctionScopes.empty()) in getCurLambda()
2307 auto I = FunctionScopes.rbegin(); in getCurLambda()
2309 auto E = FunctionScopes.rend(); in getCurLambda()
2636 FunctionScopes.push_back(CSI); in PushCapturedRegionScope()
2640 if (FunctionScopes.empty()) in getCurCapturedRegion()
2643 return dyn_cast<CapturedRegionScopeInfo>(FunctionScopes.back()); in getCurCapturedRegion()