|
clang
3.8.0
|
Represents a 'co_return' statement in the C++ Coroutines TS. More...
#include <StmtCXX.h>
Public Member Functions | |
| CoreturnStmt (SourceLocation CoreturnLoc, Stmt *Operand, Stmt *PromiseCall) | |
| SourceLocation | getKeywordLoc () const |
| Expr * | getOperand () const |
| Retrieve the operand of the 'co_return' statement. More... | |
| Expr * | getPromiseCall () const |
| Retrieve the promise call that results from this 'co_return' statement. More... | |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
Friends | |
| class | ASTStmtReader |
Represents a 'co_return' statement in the C++ Coroutines TS.
This statament models the initialization of the coroutine promise (encapsulating the eventual notional return value) from an expression (or braced-init-list), followed by termination of the coroutine.
This initialization is modeled by the evaluation of the operand followed by a call to one of: <promise>.return_value(<operand>) <promise>.return_void() which we name the "promise call".
|
inline |
|
inline |
Definition at line 406 of file StmtCXX.h.
References clang::LangAS::Count.
|
inline |
|
inline |
Definition at line 402 of file StmtCXX.h.
References getOperand().
|
inline |
|
inline |
Retrieve the operand of the 'co_return' statement.
Will be nullptr if none was specified.
Definition at line 392 of file StmtCXX.h.
Referenced by getLocEnd().
|
inline |
|
friend |
1.8.6