class CoroutineBodyStmt
Declaration
class CoroutineBodyStmt : public Stmt, private TrailingObjects { /* full declaration omitted */ };
Description
Represents the body of a coroutine. This wraps the normal function body and holds the additional semantic context required to set up and tear down the coroutine frame.
Declared at: clang/include/clang/AST/StmtCXX.h:317
Inherits from: Stmt, TrailingObjects
Member Variables
- private unsigned int NumParams
Inherited from Stmt:
Method Overview
- private CoroutineBodyStmt(const clang::CoroutineBodyStmt::CtorArgs & Args)
- public static clang::CoroutineBodyStmt * Create(const clang::ASTContext & C, const clang::CoroutineBodyStmt::CtorArgs & Args)
- public static clang::CoroutineBodyStmt * Create(const clang::ASTContext & C, clang::Stmt::EmptyShell, unsigned int NumParams)
- public clang::Stmt::const_child_range children() const
- public clang::Stmt::child_range children()
- public static bool classof(const clang::Stmt * T)
- public clang::Expr * getAllocate() const
- public clang::SourceLocation getBeginLoc() const
- public clang::Stmt * getBody() const
- public clang::Expr * getDeallocate() const
- public clang::SourceLocation getEndLoc() const
- public clang::Stmt * getExceptionHandler() const
- public clang::Stmt * getFallthroughHandler() const
- public clang::Stmt * getFinalSuspendStmt() const
- public clang::Stmt * getInitSuspendStmt() const
- public ArrayRef<const clang::Stmt *> getParamMoves() const
- public clang::VarDecl * getPromiseDecl() const
- public clang::Stmt * getPromiseDeclStmt() const
- public clang::Stmt * getReturnStmt() const
- public clang::Stmt * getReturnStmtOnAllocFailure() const
- public clang::Expr * getReturnValue() const
- public clang::Expr * getReturnValueInit() const
- private clang::Stmt ** getStoredStmts()
- private clang::Stmt *const * getStoredStmts() const
- public bool hasDependentPromiseType() const
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶CoroutineBodyStmt(
const clang::CoroutineBodyStmt::CtorArgs&
Args)
CoroutineBodyStmt(
const clang::CoroutineBodyStmt::CtorArgs&
Args)
Declared at: clang/include/clang/AST/StmtCXX.h:363
Parameters
- const clang::CoroutineBodyStmt::CtorArgs& Args
¶static clang::CoroutineBodyStmt* Create(
const clang::ASTContext& C,
const clang::CoroutineBodyStmt::CtorArgs&
Args)
static clang::CoroutineBodyStmt* Create(
const clang::ASTContext& C,
const clang::CoroutineBodyStmt::CtorArgs&
Args)
Declared at: clang/include/clang/AST/StmtCXX.h:366
Parameters
- const clang::ASTContext& C
- const clang::CoroutineBodyStmt::CtorArgs& Args
¶static clang::CoroutineBodyStmt* Create(
const clang::ASTContext& C,
clang::Stmt::EmptyShell,
unsigned int NumParams)
static clang::CoroutineBodyStmt* Create(
const clang::ASTContext& C,
clang::Stmt::EmptyShell,
unsigned int NumParams)
Declared at: clang/include/clang/AST/StmtCXX.h:367
Parameters
- const clang::ASTContext& C
- clang::Stmt::EmptyShell
- unsigned int NumParams
¶clang::Stmt::const_child_range children() const
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/StmtCXX.h:436
¶clang::Stmt::child_range children()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/StmtCXX.h:431
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/StmtCXX.h:442
Parameters
- const clang::Stmt* T
¶clang::Expr* getAllocate() const
clang::Expr* getAllocate() const
Declared at: clang/include/clang/AST/StmtCXX.h:401
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/StmtCXX.h:423
¶clang::Stmt* getBody() const
clang::Stmt* getBody() const
Description
Retrieve the body of the coroutine as written. This will be either a CompoundStmt or a TryStmt.
Declared at: clang/include/clang/AST/StmtCXX.h:376
¶clang::Expr* getDeallocate() const
clang::Expr* getDeallocate() const
Declared at: clang/include/clang/AST/StmtCXX.h:404
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/StmtCXX.h:427
¶clang::Stmt* getExceptionHandler() const
clang::Stmt* getExceptionHandler() const
Declared at: clang/include/clang/AST/StmtCXX.h:394
¶clang::Stmt* getFallthroughHandler() const
clang::Stmt* getFallthroughHandler() const
Declared at: clang/include/clang/AST/StmtCXX.h:397
¶clang::Stmt* getFinalSuspendStmt() const
clang::Stmt* getFinalSuspendStmt() const
Declared at: clang/include/clang/AST/StmtCXX.h:390
¶clang::Stmt* getInitSuspendStmt() const
clang::Stmt* getInitSuspendStmt() const
Declared at: clang/include/clang/AST/StmtCXX.h:387
¶ArrayRef<const clang::Stmt*> getParamMoves() const
ArrayRef<const clang::Stmt*> getParamMoves() const
Declared at: clang/include/clang/AST/StmtCXX.h:419
¶clang::VarDecl* getPromiseDecl() const
clang::VarDecl* getPromiseDecl() const
Declared at: clang/include/clang/AST/StmtCXX.h:383
¶clang::Stmt* getPromiseDeclStmt() const
clang::Stmt* getPromiseDeclStmt() const
Declared at: clang/include/clang/AST/StmtCXX.h:380
¶clang::Stmt* getReturnStmt() const
clang::Stmt* getReturnStmt() const
Declared at: clang/include/clang/AST/StmtCXX.h:415
¶clang::Stmt* getReturnStmtOnAllocFailure() const
clang::Stmt* getReturnStmtOnAllocFailure() const
Declared at: clang/include/clang/AST/StmtCXX.h:416
¶clang::Expr* getReturnValue() const
clang::Expr* getReturnValue() const
Declared at: clang/include/clang/AST/StmtCXX.h:410
¶clang::Expr* getReturnValueInit() const
clang::Expr* getReturnValueInit() const
Declared at: clang/include/clang/AST/StmtCXX.h:407
¶clang::Stmt** getStoredStmts()
clang::Stmt** getStoredStmts()
Declared at: clang/include/clang/AST/StmtCXX.h:340
¶clang::Stmt* const* getStoredStmts() const
clang::Stmt* const* getStoredStmts() const
Declared at: clang/include/clang/AST/StmtCXX.h:342
¶bool hasDependentPromiseType() const
bool hasDependentPromiseType() const
Declared at: clang/include/clang/AST/StmtCXX.h:370