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

DeclStmt - Adaptor class for mixing declarations with statements and expressions. More...

#include <Stmt.h>

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

Public Types

typedef DeclGroupRef::iterator decl_iterator
 
typedef
DeclGroupRef::const_iterator 
const_decl_iterator
 
typedef llvm::iterator_range
< decl_iterator
decl_range
 
typedef llvm::iterator_range
< const_decl_iterator
decl_const_range
 
typedef std::reverse_iterator
< decl_iterator
reverse_decl_iterator
 

Public Member Functions

 DeclStmt (DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc)
 
 DeclStmt (EmptyShell Empty)
 Build an empty declaration statement. More...
 
bool isSingleDecl () const
 isSingleDecl - This method returns true if this DeclStmt refers to a single Decl. More...
 
const DeclgetSingleDecl () const
 
DeclgetSingleDecl ()
 
const DeclGroupRef getDeclGroup () const
 
DeclGroupRef getDeclGroup ()
 
void setDeclGroup (DeclGroupRef DGR)
 
SourceLocation getStartLoc () const
 
void setStartLoc (SourceLocation L)
 
SourceLocation getEndLoc () const
 
void setEndLoc (SourceLocation L)
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 
child_range children ()
 
decl_range decls ()
 
decl_const_range decls () const
 
decl_iterator decl_begin ()
 
decl_iterator decl_end ()
 
const_decl_iterator decl_begin () const
 
const_decl_iterator decl_end () const
 
reverse_decl_iterator decl_rbegin ()
 
reverse_decl_iterator decl_rend ()
 

Static Public Member Functions

static bool classof (const Stmt *T)
 

Detailed Description

DeclStmt - Adaptor class for mixing declarations with statements and expressions.

For example, CompoundStmt mixes statements, expressions and declarations (variables, types). Another example is ForStmt, where the first statement can be an expression or a declaration.

Definition at line 443 of file Stmt.h.

Member Typedef Documentation

Definition at line 487 of file Stmt.h.

Definition at line 489 of file Stmt.h.

Definition at line 486 of file Stmt.h.

typedef llvm::iterator_range<decl_iterator> clang::DeclStmt::decl_range

Definition at line 488 of file Stmt.h.

typedef std::reverse_iterator<decl_iterator> clang::DeclStmt::reverse_decl_iterator

Definition at line 500 of file Stmt.h.

Constructor & Destructor Documentation

clang::DeclStmt::DeclStmt ( DeclGroupRef  dg,
SourceLocation  startLoc,
SourceLocation  endLoc 
)
inline

Definition at line 448 of file Stmt.h.

clang::DeclStmt::DeclStmt ( EmptyShell  Empty)
inlineexplicit

Build an empty declaration statement.

Definition at line 453 of file Stmt.h.

Member Function Documentation

child_range clang::DeclStmt::children ( )
inline

Definition at line 481 of file Stmt.h.

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

Definition at line 476 of file Stmt.h.

decl_iterator clang::DeclStmt::decl_begin ( )
inline

Definition at line 495 of file Stmt.h.

Referenced by clang::ento::ExprEngine::VisitDeclStmt().

const_decl_iterator clang::DeclStmt::decl_begin ( ) const
inline

Definition at line 497 of file Stmt.h.

decl_iterator clang::DeclStmt::decl_end ( )
inline

Definition at line 496 of file Stmt.h.

const_decl_iterator clang::DeclStmt::decl_end ( ) const
inline

Definition at line 498 of file Stmt.h.

reverse_decl_iterator clang::DeclStmt::decl_rbegin ( )
inline

Definition at line 501 of file Stmt.h.

reverse_decl_iterator clang::DeclStmt::decl_rend ( )
inline

Definition at line 504 of file Stmt.h.

decl_range clang::DeclStmt::decls ( )
inline
decl_const_range clang::DeclStmt::decls ( ) const
inline

Definition at line 492 of file Stmt.h.

const DeclGroupRef clang::DeclStmt::getDeclGroup ( ) const
inline

Definition at line 464 of file Stmt.h.

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

DeclGroupRef clang::DeclStmt::getDeclGroup ( )
inline

Definition at line 465 of file Stmt.h.

SourceLocation clang::DeclStmt::getEndLoc ( ) const
inline

Definition at line 470 of file Stmt.h.

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

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

Definition at line 474 of file Stmt.h.

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

Definition at line 473 of file Stmt.h.

Referenced by CheckConstexprDeclStmt().

const Decl* clang::DeclStmt::getSingleDecl ( ) const
inline
Decl* clang::DeclStmt::getSingleDecl ( )
inline

Definition at line 462 of file Stmt.h.

SourceLocation clang::DeclStmt::getStartLoc ( ) const
inline
bool clang::DeclStmt::isSingleDecl ( ) const
inline

isSingleDecl - This method returns true if this DeclStmt refers to a single Decl.

Definition at line 457 of file Stmt.h.

Referenced by clang::Sema::ActOnCXXForRangeStmt(), clang::CFG::addSyntheticDeclStmt(), clang::ento::ExprEngine::VisitDeclStmt(), and clang::consumed::ConsumedStmtVisitor::VisitDeclStmt().

void clang::DeclStmt::setDeclGroup ( DeclGroupRef  DGR)
inline

Definition at line 466 of file Stmt.h.

void clang::DeclStmt::setEndLoc ( SourceLocation  L)
inline

Definition at line 471 of file Stmt.h.

void clang::DeclStmt::setStartLoc ( SourceLocation  L)
inline

Definition at line 469 of file Stmt.h.


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