enum CoroutineBodyStmt::SubStmt

Declared at: clang/include/clang/AST/StmtCXX.h:320

Enumerators

NameValueComment
Body0The body of the coroutine.
Promise1The promise statement.
InitSuspend2The initial suspend statement, run before the body.
FinalSuspend3The final suspend statement, run after the body.
OnException4Handler for exceptions thrown in the body.
OnFallthrough5Handler for control flow falling off the body.
Allocate6Coroutine frame memory allocation.
Deallocate7Coroutine frame memory deallocation.
ReturnValue8Return value for thunk function: p.get_return_object().
ReturnStmt9Return statement for the thunk function.
ReturnStmtOnAllocFailure10Return statement if allocation failed.
FirstParamMove11First offset for move construction of parameter copies.