clang  3.7.0
Public Member Functions | Static Public Member Functions | List of all members
clang::DoStmt Class Reference

#include <Stmt.h>

Inheritance diagram for clang::DoStmt:
[legend]
Collaboration diagram for clang::DoStmt:
[legend]

Public Member Functions

 DoStmt (Stmt *body, Expr *cond, SourceLocation DL, SourceLocation WL, SourceLocation RP)
 
 DoStmt (EmptyShell Empty)
 Build an empty do-while statement. More...
 
ExprgetCond ()
 
const ExprgetCond () const
 
void setCond (Expr *E)
 
StmtgetBody ()
 
const StmtgetBody () const
 
void setBody (Stmt *S)
 
SourceLocation getDoLoc () const
 
void setDoLoc (SourceLocation L)
 
SourceLocation getWhileLoc () const
 
void setWhileLoc (SourceLocation L)
 
SourceLocation getRParenLoc () const
 
void setRParenLoc (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)
 

Detailed Description

DoStmt - This represents a 'do/while' stmt.

Definition at line 1093 of file Stmt.h.

Constructor & Destructor Documentation

clang::DoStmt::DoStmt ( Stmt body,
Expr cond,
SourceLocation  DL,
SourceLocation  WL,
SourceLocation  RP 
)
inline

Definition at line 1101 of file Stmt.h.

clang::DoStmt::DoStmt ( EmptyShell  Empty)
inlineexplicit

Build an empty do-while statement.

Definition at line 1109 of file Stmt.h.

Member Function Documentation

child_range clang::DoStmt::children ( )
inline

Definition at line 1134 of file Stmt.h.

static bool clang::DoStmt::classof ( const Stmt T)
inlinestatic

Definition at line 1129 of file Stmt.h.

Stmt* clang::DoStmt::getBody ( )
inline
const Stmt* clang::DoStmt::getBody ( ) const
inline

Definition at line 1115 of file Stmt.h.

Expr* clang::DoStmt::getCond ( )
inline
const Expr* clang::DoStmt::getCond ( ) const
inline

Definition at line 1112 of file Stmt.h.

SourceLocation clang::DoStmt::getDoLoc ( ) const
inline

Definition at line 1118 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitDoStmt().

SourceLocation clang::DoStmt::getLocEnd ( ) const
inline

Definition at line 1127 of file Stmt.h.

SourceLocation clang::DoStmt::getLocStart ( ) const
inline

Definition at line 1126 of file Stmt.h.

SourceLocation clang::DoStmt::getRParenLoc ( ) const
inline

Definition at line 1123 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitDoStmt().

SourceLocation clang::DoStmt::getWhileLoc ( ) const
inline

Definition at line 1120 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitDoStmt().

void clang::DoStmt::setBody ( Stmt S)
inline

Definition at line 1116 of file Stmt.h.

References S.

void clang::DoStmt::setCond ( Expr E)
inline

Definition at line 1113 of file Stmt.h.

void clang::DoStmt::setDoLoc ( SourceLocation  L)
inline

Definition at line 1119 of file Stmt.h.

void clang::DoStmt::setRParenLoc ( SourceLocation  L)
inline

Definition at line 1124 of file Stmt.h.

void clang::DoStmt::setWhileLoc ( SourceLocation  L)
inline

Definition at line 1121 of file Stmt.h.


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