clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::DeclStmt Class Reference

#include <Stmt.h>

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

List of all members.

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.
bool isSingleDecl () const
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 447 of file Stmt.h.


Member Typedef Documentation

Definition at line 491 of file Stmt.h.

Definition at line 493 of file Stmt.h.

Definition at line 490 of file Stmt.h.

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

Definition at line 492 of file Stmt.h.

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

Definition at line 504 of file Stmt.h.


Constructor & Destructor Documentation

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

Definition at line 452 of file Stmt.h.

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

Build an empty declaration statement.

Definition at line 457 of file Stmt.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 485 of file Stmt.h.

References clang::DeclGroupRef::begin(), and clang::DeclGroupRef::end().

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

Definition at line 480 of file Stmt.h.

References clang::Stmt::getStmtClass().

Definition at line 499 of file Stmt.h.

References clang::DeclGroupRef::begin().

Referenced by decl_rend(), decls(), and clang::ento::ExprEngine::VisitDeclStmt().

Definition at line 501 of file Stmt.h.

References clang::DeclGroupRef::begin().

Definition at line 500 of file Stmt.h.

References clang::DeclGroupRef::end().

Referenced by decl_rbegin(), and decls().

Definition at line 502 of file Stmt.h.

References clang::DeclGroupRef::end().

Definition at line 505 of file Stmt.h.

References decl_end().

Definition at line 508 of file Stmt.h.

References decl_begin().

Definition at line 496 of file Stmt.h.

References decl_begin(), and decl_end().

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

Definition at line 469 of file Stmt.h.

Definition at line 474 of file Stmt.h.

Reimplemented from clang::Stmt.

Definition at line 478 of file Stmt.h.

Reimplemented from clang::Stmt.

Definition at line 477 of file Stmt.h.

Referenced by CheckConstexprDeclStmt().

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

Definition at line 466 of file Stmt.h.

References clang::DeclGroupRef::getSingleDecl().

Definition at line 472 of file Stmt.h.

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

bool clang::DeclStmt::isSingleDecl ( ) const [inline]

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

Definition at line 461 of file Stmt.h.

References clang::DeclGroupRef::isSingleDecl().

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

Definition at line 470 of file Stmt.h.

Definition at line 475 of file Stmt.h.

Definition at line 473 of file Stmt.h.


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