Lines Matching refs:CurContext
639 if (CurContext->isDependentContext() || (E && E->isInstantiationDependent())) in checkAndRewriteMustTailAttr()
661 assert(!CurContext->isDependentContext() && in checkMustTailAttr()
722 const auto *CallerDecl = dyn_cast<FunctionDecl>(CurContext); in checkMustTailAttr()
727 if (isa<BlockDecl>(CurContext)) in checkMustTailAttr()
729 else if (isa<ObjCMethodDecl>(CurContext)) in checkMustTailAttr()
736 } else if (const auto *CMD = dyn_cast<CXXMethodDecl>(CurContext)) { in checkMustTailAttr()
967 if (CurContext->isFunctionOrMethod()) { in ActOnIfStmt()
969 dyn_cast<FunctionDecl>(Decl::castFromDeclContext(CurContext)); in ActOnIfStmt()
2277 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
2318 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
3474 if (!CurContext->isDependentContext()) in ActOnCapScopeReturnStmt()
3861 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in BuildReturnStmt()
4321 DeclContext *DC = CurContext; in ActOnSEHTryBlock()
4401 DeclContext *DC = CurContext; in CreateCapturedStmtRecordDecl()
4419 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl()
4490 CurContext = CD; in ActOnCapturedRegionStart()
4550 CurContext = CD; in ActOnCapturedRegionStart()