clang API Documentation
#include <Stmt.h>
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 |
clang::DeclStmt::DeclStmt | ( | DeclGroupRef | dg, |
SourceLocation | startLoc, | ||
SourceLocation | endLoc | ||
) | [inline] |
clang::DeclStmt::DeclStmt | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::DeclStmt::children | ( | ) | [inline] |
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().
decl_iterator clang::DeclStmt::decl_begin | ( | ) | [inline] |
Definition at line 499 of file Stmt.h.
References clang::DeclGroupRef::begin().
Referenced by decl_rend(), decls(), and clang::ento::ExprEngine::VisitDeclStmt().
const_decl_iterator clang::DeclStmt::decl_begin | ( | ) | const [inline] |
Definition at line 501 of file Stmt.h.
References clang::DeclGroupRef::begin().
decl_iterator clang::DeclStmt::decl_end | ( | ) | [inline] |
Definition at line 500 of file Stmt.h.
References clang::DeclGroupRef::end().
Referenced by decl_rbegin(), and decls().
const_decl_iterator clang::DeclStmt::decl_end | ( | ) | const [inline] |
Definition at line 502 of file Stmt.h.
References clang::DeclGroupRef::end().
reverse_decl_iterator clang::DeclStmt::decl_rbegin | ( | ) | [inline] |
Definition at line 505 of file Stmt.h.
References decl_end().
reverse_decl_iterator clang::DeclStmt::decl_rend | ( | ) | [inline] |
Definition at line 508 of file Stmt.h.
References decl_begin().
decl_range clang::DeclStmt::decls | ( | ) | [inline] |
Definition at line 495 of file Stmt.h.
References decl_begin(), and decl_end().
Referenced by CheckConstexprDeclStmt(), clang::CodeGen::CodeGenFunction::EmitDeclStmt(), EvaluateStmt(), and clang::consumed::ConsumedStmtVisitor::VisitDeclStmt().
decl_const_range clang::DeclStmt::decls | ( | ) | const [inline] |
Definition at line 496 of file Stmt.h.
References decl_begin(), and decl_end().
const DeclGroupRef clang::DeclStmt::getDeclGroup | ( | ) | const [inline] |
Definition at line 468 of file Stmt.h.
Referenced by clang::threadSafety::VarMapBuilder::VisitDeclStmt(), and clang::threadSafety::BuildLockset::VisitDeclStmt().
DeclGroupRef clang::DeclStmt::getDeclGroup | ( | ) | [inline] |
SourceLocation clang::DeclStmt::getEndLoc | ( | ) | const [inline] |
SourceLocation clang::DeclStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::DeclStmt::getLocStart | ( | ) | const [inline] |
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 465 of file Stmt.h.
References clang::DeclGroupRef::getSingleDecl().
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().
Decl* clang::DeclStmt::getSingleDecl | ( | ) | [inline] |
Definition at line 466 of file Stmt.h.
References clang::DeclGroupRef::getSingleDecl().
SourceLocation clang::DeclStmt::getStartLoc | ( | ) | const [inline] |
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().
void clang::DeclStmt::setDeclGroup | ( | DeclGroupRef | DGR | ) | [inline] |
void clang::DeclStmt::setEndLoc | ( | SourceLocation | L | ) | [inline] |
void clang::DeclStmt::setStartLoc | ( | SourceLocation | L | ) | [inline] |