Home
last modified time | relevance | path

Searched refs:FinalSuspend (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang/lib/AST/
H A DStmtCXX.cpp115 SubStmts[CoroutineBodyStmt::FinalSuspend] = Args.FinalSuspend; in CoroutineBodyStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtCXX.h324 FinalSuspend, ///< The final suspend statement, run after the body. enumerator
350 Expr *FinalSuspend = nullptr; member
391 return getStoredStmts()[SubStmt::FinalSuspend]; in getFinalSuspendStmt()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCoroutine.cpp672 bool Sema::checkFinalSuspendNoThrow(const Stmt *FinalSuspend) { in checkFinalSuspendNoThrow() argument
678 checkNoThrow(*this, FinalSuspend, ThrowingDecls); in checkFinalSuspendNoThrow()
732 StmtResult FinalSuspend = buildSuspends("final_suspend"); in ActOnCoroutineBodyStart() local
733 if (FinalSuspend.isInvalid() || !checkFinalSuspendNoThrow(FinalSuspend.get())) in ActOnCoroutineBodyStart()
736 ScopeInfo->setCoroutineSuspends(InitSuspend.get(), FinalSuspend.get()); in ActOnCoroutineBodyStart()
1168 this->FinalSuspend = cast<Expr>(Fn.CoroutineSuspends.second); in makeInitialAndFinalSuspend()
H A DTreeTransform.h7869 StmtResult FinalSuspend = in TransformCoroutineBodyStmt() local
7871 if (FinalSuspend.isInvalid() || in TransformCoroutineBodyStmt()
7872 !SemaRef.checkFinalSuspendNoThrow(FinalSuspend.get())) in TransformCoroutineBodyStmt()
7874 ScopeInfo->setCoroutineSuspends(InitSuspend.get(), FinalSuspend.get()); in TransformCoroutineBodyStmt()
7875 assert(isa<Expr>(InitSuspend.get()) && isa<Expr>(FinalSuspend.get())); in TransformCoroutineBodyStmt()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h10585 bool checkFinalSuspendNoThrow(const Stmt *FinalSuspend);