clang API Documentation

Public Member Functions | Static Public Member Functions
clang::StmtExpr Class Reference

#include <Expr.h>

Inheritance diagram for clang::StmtExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::StmtExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StmtExpr (CompoundStmt *substmt, QualType T, SourceLocation lp, SourceLocation rp)
 StmtExpr (EmptyShell Empty)
 Build an empty statement expression.
CompoundStmtgetSubStmt ()
const CompoundStmtgetSubStmt () 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)

Detailed Description

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.

Definition at line 3395 of file Expr.h.


Constructor & Destructor Documentation

clang::StmtExpr::StmtExpr ( CompoundStmt substmt,
QualType  T,
SourceLocation  lp,
SourceLocation  rp 
) [inline]

Definition at line 3402 of file Expr.h.

clang::StmtExpr::StmtExpr ( EmptyShell  Empty) [inline, explicit]

Build an empty statement expression.

Definition at line 3409 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 3428 of file Expr.h.

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().

Reimplemented from clang::Stmt.

Definition at line 3416 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 3415 of file Expr.h.

Definition at line 3418 of file Expr.h.

Definition at line 3420 of file Expr.h.

Definition at line 3411 of file Expr.h.

Referenced by print_elem(), and clang::ento::ExprEngine::Visit().

const CompoundStmt* clang::StmtExpr::getSubStmt ( ) const [inline]

Definition at line 3412 of file Expr.h.

Definition at line 3419 of file Expr.h.

Definition at line 3421 of file Expr.h.

void clang::StmtExpr::setSubStmt ( CompoundStmt S) [inline]

Definition at line 3413 of file Expr.h.

References S.


The documentation for this class was generated from the following file: