clang
3.9.0
|
WhileStmt - This represents a 'while' stmt. More...
#include <Stmt.h>
Public Member Functions | |
WhileStmt (const ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body, SourceLocation WL) | |
WhileStmt (EmptyShell Empty) | |
Build an empty while statement. More... | |
VarDecl * | getConditionVariable () const |
Retrieve the variable declared in this "while" statement, if any. More... | |
void | setConditionVariable (const ASTContext &C, VarDecl *V) |
const DeclStmt * | getConditionVariableDeclStmt () const |
If this WhileStmt has a condition variable, return the faux DeclStmt associated with the creation of that condition variable. More... | |
Expr * | getCond () |
const Expr * | getCond () const |
void | setCond (Expr *E) |
Stmt * | getBody () |
const Stmt * | getBody () const |
void | setBody (Stmt *S) |
SourceLocation | getWhileLoc () const |
void | setWhileLoc (SourceLocation L) |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
WhileStmt::WhileStmt | ( | const ASTContext & | C, |
VarDecl * | Var, | ||
Expr * | cond, | ||
Stmt * | body, | ||
SourceLocation | WL | ||
) |
Definition at line 862 of file Stmt.cpp.
References setConditionVariable().
|
inlineexplicit |
|
inline |
Definition at line 1078 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitWhileStmt(), EvaluateStmt(), isIdenticalStmt(), and clang::ASTNodeImporter::VisitWhileStmt().
|
inline |
Definition at line 1075 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitWhileStmt(), EvaluateStmt(), isIdenticalStmt(), and clang::ASTNodeImporter::VisitWhileStmt().
VarDecl * WhileStmt::getConditionVariable | ( | ) | const |
Retrieve the variable declared in this "while" statement, if any.
In the following example, "x" is the condition variable.
Definition at line 871 of file Stmt.cpp.
References clang::DeclStmt::getSingleDecl().
Referenced by clang::CodeGen::CodeGenFunction::EmitWhileStmt(), EvaluateStmt(), and clang::ASTNodeImporter::VisitWhileStmt().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1082 of file Stmt.h.
Referenced by clang::ASTNodeImporter::VisitWhileStmt().
|
inline |
|
inline |
void WhileStmt::setConditionVariable | ( | const ASTContext & | C, |
VarDecl * | V | ||
) |
Definition at line 879 of file Stmt.cpp.
References clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), and clang::VarDecl::getSourceRange().
Referenced by WhileStmt().
|
inline |