clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::CompoundStmt Class Reference

#include <Stmt.h>

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

List of all members.

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, Stmt **Stmts, unsigned NumStmts)
bool body_empty () const
unsigned size () const
body_range body ()
body_iterator body_begin ()
body_iterator body_end ()
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_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 553 of file Stmt.h.


Member Typedef Documentation

Definition at line 594 of file Stmt.h.

Definition at line 580 of file Stmt.h.

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

Definition at line 581 of file Stmt.h.

Definition at line 593 of file Stmt.h.

Definition at line 614 of file Stmt.h.

Definition at line 605 of file Stmt.h.


Constructor & Destructor Documentation

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

Definition at line 275 of file Stmt.cpp.

References AttributeLangSupport::C, and clang::Stmt::CompoundStmtBits.

Definition at line 564 of file Stmt.h.

References clang::Stmt::CompoundStmtBits.

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

Definition at line 570 of file Stmt.h.

References clang::Stmt::CompoundStmtBits.


Member Function Documentation

Definition at line 596 of file Stmt.h.

References body_begin(), and body_end().

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

Definition at line 601 of file Stmt.h.

References body_empty(), and size().

Definition at line 599 of file Stmt.h.

Definition at line 600 of file Stmt.h.

References size().

Definition at line 606 of file Stmt.h.

References body_end().

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

Definition at line 616 of file Stmt.h.

References body_end().

Definition at line 609 of file Stmt.h.

References body_begin().

Definition at line 620 of file Stmt.h.

References body_begin().

Reimplemented from clang::Stmt.

Definition at line 635 of file Stmt.h.

References clang::Stmt::CompoundStmtBits.

Referenced by print_elem().

Reimplemented from clang::Stmt.

Definition at line 639 of file Stmt.h.

References clang::Stmt::CompoundStmtBits.

static bool clang::CompoundStmt::classof ( const Stmt T) [inline, static]

Definition at line 630 of file Stmt.h.

References clang::Stmt::getStmtClass().

Reimplemented from clang::Stmt.

Definition at line 625 of file Stmt.h.

Referenced by clang::SEHExceptStmt::getEndLoc(), and clang::ObjCAtSynchronizedStmt::getLocEnd().

Reimplemented from clang::Stmt.

Definition at line 624 of file Stmt.h.

void clang::CompoundStmt::setLastStmt ( Stmt S) [inline]

Definition at line 588 of file Stmt.h.

References body_empty(), S, and size().

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

void CompoundStmt::setStmts ( const ASTContext C,
Stmt **  Stmts,
unsigned  NumStmts 
)
unsigned clang::CompoundStmt::size ( ) const [inline]

Definition at line 578 of file Stmt.h.

References clang::Stmt::CompoundStmtBits.

Referenced by body_back(), body_end(), isIdenticalStmt(), and setLastStmt().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 557 of file Stmt.h.


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