clang  3.9.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::CompoundStmt Class Reference

CompoundStmt - This represents a group of statements like { stmt stmt }. More...

#include <Stmt.h>

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

Public Types

typedef Stmt ** body_iterator
 
typedef llvm::iterator_range
< body_iterator
body_range
 
typedef Stmt *const * const_body_iterator
 
typedef llvm::iterator_range
< const_body_iterator
body_const_range
 
typedef std::reverse_iterator
< body_iterator
reverse_body_iterator
 
typedef std::reverse_iterator
< const_body_iterator
const_reverse_body_iterator
 

Public Member Functions

 CompoundStmt (const ASTContext &C, ArrayRef< Stmt * > Stmts, SourceLocation LB, SourceLocation RB)
 
 CompoundStmt (SourceLocation Loc)
 
 CompoundStmt (EmptyShell Empty)
 
void setStmts (const ASTContext &C, ArrayRef< Stmt * > Stmts)
 
bool body_empty () const
 
unsigned size () const
 
body_range body ()
 
body_iterator body_begin ()
 
body_iterator body_end ()
 
Stmtbody_front ()
 
Stmtbody_back ()
 
void setLastStmt (Stmt *S)
 
body_const_range body () const
 
const_body_iterator body_begin () const
 
const_body_iterator body_end () const
 
const Stmtbody_front () const
 
const Stmtbody_back () const
 
reverse_body_iterator body_rbegin ()
 
reverse_body_iterator body_rend ()
 
const_reverse_body_iterator body_rbegin () const
 
const_reverse_body_iterator body_rend () const
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 
SourceLocation getLBracLoc () const
 
SourceLocation getRBracLoc () const
 
child_range children ()
 
const_child_range children () const
 

Static Public Member Functions

static bool classof (const Stmt *T)
 

Friends

class ASTStmtReader
 

Detailed Description

CompoundStmt - This represents a group of statements like { stmt stmt }.

Definition at line 551 of file Stmt.h.

Member Typedef Documentation

Definition at line 593 of file Stmt.h.

Definition at line 578 of file Stmt.h.

typedef llvm::iterator_range<body_iterator> clang::CompoundStmt::body_range

Definition at line 579 of file Stmt.h.

Definition at line 592 of file Stmt.h.

Definition at line 616 of file Stmt.h.

Definition at line 607 of file Stmt.h.

Constructor & Destructor Documentation

CompoundStmt::CompoundStmt ( const ASTContext C,
ArrayRef< Stmt * >  Stmts,
SourceLocation  LB,
SourceLocation  RB 
)

Definition at line 282 of file Stmt.cpp.

clang::CompoundStmt::CompoundStmt ( SourceLocation  Loc)
inlineexplicit

Definition at line 562 of file Stmt.h.

clang::CompoundStmt::CompoundStmt ( EmptyShell  Empty)
inlineexplicit

Definition at line 568 of file Stmt.h.

Member Function Documentation

body_range clang::CompoundStmt::body ( )
inline
body_const_range clang::CompoundStmt::body ( ) const
inline

Definition at line 595 of file Stmt.h.

Stmt* clang::CompoundStmt::body_back ( )
inline
const Stmt* clang::CompoundStmt::body_back ( ) const
inline

Definition at line 603 of file Stmt.h.

body_iterator clang::CompoundStmt::body_begin ( )
inline
const_body_iterator clang::CompoundStmt::body_begin ( ) const
inline

Definition at line 598 of file Stmt.h.

bool clang::CompoundStmt::body_empty ( ) const
inline
body_iterator clang::CompoundStmt::body_end ( )
inline
const_body_iterator clang::CompoundStmt::body_end ( ) const
inline

Definition at line 599 of file Stmt.h.

Stmt* clang::CompoundStmt::body_front ( )
inline

Definition at line 584 of file Stmt.h.

const Stmt* clang::CompoundStmt::body_front ( ) const
inline

Definition at line 600 of file Stmt.h.

reverse_body_iterator clang::CompoundStmt::body_rbegin ( )
inline

Definition at line 608 of file Stmt.h.

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

const_reverse_body_iterator clang::CompoundStmt::body_rbegin ( ) const
inline

Definition at line 618 of file Stmt.h.

reverse_body_iterator clang::CompoundStmt::body_rend ( )
inline

Definition at line 611 of file Stmt.h.

const_reverse_body_iterator clang::CompoundStmt::body_rend ( ) const
inline

Definition at line 622 of file Stmt.h.

child_range clang::CompoundStmt::children ( )
inline

Definition at line 637 of file Stmt.h.

Referenced by print_elem().

const_child_range clang::CompoundStmt::children ( ) const
inline

Definition at line 641 of file Stmt.h.

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

Definition at line 632 of file Stmt.h.

SourceLocation clang::CompoundStmt::getLBracLoc ( ) const
inline
SourceLocation clang::CompoundStmt::getLocEnd ( ) const
inline

Definition at line 627 of file Stmt.h.

Referenced by clang::ObjCAtSynchronizedStmt::getLocEnd().

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

Definition at line 626 of file Stmt.h.

SourceLocation clang::CompoundStmt::getRBracLoc ( ) const
inline
void clang::CompoundStmt::setLastStmt ( Stmt S)
inline

Definition at line 587 of file Stmt.h.

References S.

Referenced by clang::Sema::ActOnStmtExpr().

void CompoundStmt::setStmts ( const ASTContext C,
ArrayRef< Stmt * >  Stmts 
)

Definition at line 298 of file Stmt.cpp.

References clang::ASTContext::Deallocate().

unsigned clang::CompoundStmt::size ( ) const
inline

Definition at line 576 of file Stmt.h.

Referenced by isIdenticalStmt(), and clang::ASTNodeImporter::VisitCompoundStmt().

Friends And Related Function Documentation

friend class ASTStmtReader
friend

Definition at line 555 of file Stmt.h.


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