clang API Documentation
#include <Expr.h>
Public Member Functions | |
StmtExpr (CompoundStmt *substmt, QualType T, SourceLocation lp, SourceLocation rp) | |
StmtExpr (EmptyShell Empty) | |
Build an empty statement expression. | |
CompoundStmt * | getSubStmt () |
const CompoundStmt * | getSubStmt () const |
void | setSubStmt (CompoundStmt *S) |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
SourceLocation | getLParenLoc () const |
void | setLParenLoc (SourceLocation L) |
SourceLocation | getRParenLoc () const |
void | setRParenLoc (SourceLocation L) |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}). The StmtExpr contains a single CompoundStmt node, which it evaluates and takes the value of the last subexpression.
A StmtExpr is always an r-value; values "returned" out of a StmtExpr will be copied.
clang::StmtExpr::StmtExpr | ( | CompoundStmt * | substmt, |
QualType | T, | ||
SourceLocation | lp, | ||
SourceLocation | rp | ||
) | [inline] |
clang::StmtExpr::StmtExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::StmtExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::StmtExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 3423 of file Expr.h.
References clang::Stmt::getStmtClass().
SourceLocation clang::StmtExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::StmtExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::StmtExpr::getLParenLoc | ( | ) | const [inline] |
SourceLocation clang::StmtExpr::getRParenLoc | ( | ) | const [inline] |
CompoundStmt* clang::StmtExpr::getSubStmt | ( | ) | [inline] |
Definition at line 3411 of file Expr.h.
Referenced by print_elem(), and clang::ento::ExprEngine::Visit().
const CompoundStmt* clang::StmtExpr::getSubStmt | ( | ) | const [inline] |
void clang::StmtExpr::setLParenLoc | ( | SourceLocation | L | ) | [inline] |
void clang::StmtExpr::setRParenLoc | ( | SourceLocation | L | ) | [inline] |
void clang::StmtExpr::setSubStmt | ( | CompoundStmt * | S | ) | [inline] |