clang
3.9.0
|
DeclStmt - Adaptor class for mixing declarations with statements and expressions. More...
#include <Stmt.h>
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 Decl * | getSingleDecl () const |
Decl * | getSingleDecl () |
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) |
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.
typedef llvm::iterator_range<const_decl_iterator> clang::DeclStmt::decl_const_range |
typedef llvm::iterator_range<decl_iterator> clang::DeclStmt::decl_range |
typedef std::reverse_iterator<decl_iterator> clang::DeclStmt::reverse_decl_iterator |
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 495 of file Stmt.h.
Referenced by clang::ento::ExprEngine::VisitDeclStmt().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 491 of file Stmt.h.
Referenced by CheckConstexprDeclStmt(), clang::CodeGen::CodeGenFunction::EmitDeclStmt(), EvaluateStmt(), and clang::consumed::ConsumedStmtVisitor::VisitDeclStmt().
|
inline |
|
inline |
Definition at line 464 of file Stmt.h.
Referenced by clang::ASTNodeImporter::VisitDeclStmt().
|
inline |
|
inline |
Definition at line 470 of file Stmt.h.
Referenced by clang::ASTNodeImporter::VisitDeclStmt().
|
inline |
|
inline |
Definition at line 473 of file Stmt.h.
Referenced by CheckConstexprDeclStmt().
|
inline |
Definition at line 461 of file Stmt.h.
Referenced by clang::Sema::ActOnCXXForRangeStmt(), clang::Sema::BuildCXXForRangeStmt(), clang::IfStmt::getConditionVariable(), clang::SwitchStmt::getConditionVariable(), clang::WhileStmt::getConditionVariable(), clang::ForStmt::getConditionVariable(), clang::CXXForRangeStmt::getRangeInit(), isInitializationOfVar(), clang::consumed::ConsumedStmtVisitor::VisitDeclStmt(), and clang::ento::FindLastStoreBRVisitor::VisitNode().
|
inline |
Definition at line 468 of file Stmt.h.
Referenced by clang::Sema::ActOnCXXForRangeStmt(), and clang::ASTNodeImporter::VisitDeclStmt().
|
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().
|
inline |
|
inline |
|
inline |