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) |
| SourceRange | getSourceRange () 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) |
| static bool | classof (const StmtExpr *) |
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] |
Build an empty statement expression.
| 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 3228 of file Expr.h.
References clang::Stmt::getStmtClass().
| static bool clang::StmtExpr::classof | ( | const StmtExpr * | ) | [inline, static] |
| SourceLocation clang::StmtExpr::getLParenLoc | ( | ) | const [inline] |
| SourceLocation clang::StmtExpr::getRParenLoc | ( | ) | const [inline] |
| SourceRange clang::StmtExpr::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
| CompoundStmt* clang::StmtExpr::getSubStmt | ( | ) | [inline] |
Definition at line 3215 of file Expr.h.
Referenced by PopulateBlkExprMap(), and print_elem().
| 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] |