clang API Documentation
#include <Stmt.h>
CompoundStmt - This represents a group of statements like { stmt stmt }.
typedef llvm::iterator_range<const_body_iterator> clang::CompoundStmt::body_const_range |
typedef Stmt** clang::CompoundStmt::body_iterator |
typedef llvm::iterator_range<body_iterator> clang::CompoundStmt::body_range |
typedef Stmt* const* clang::CompoundStmt::const_body_iterator |
typedef std::reverse_iterator<const_body_iterator> clang::CompoundStmt::const_reverse_body_iterator |
typedef std::reverse_iterator<body_iterator> clang::CompoundStmt::reverse_body_iterator |
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.
clang::CompoundStmt::CompoundStmt | ( | SourceLocation | Loc | ) | [inline, explicit] |
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.
body_range clang::CompoundStmt::body | ( | ) | [inline] |
Definition at line 583 of file Stmt.h.
References body_begin(), and body_end().
Referenced by clang::Sema::CheckConstexprFunctionBody(), CheckConstexprFunctionStmt(), clang::CodeGen::CodeGenFunction::emitImplicitAssignmentOperatorBody(), clang::CodeGen::CodeGenFunction::EmitObjCAutoreleasePoolStmt(), EvaluateStmt(), isBodyEmpty(), and isCapturedBy().
body_const_range clang::CompoundStmt::body | ( | ) | const [inline] |
Definition at line 596 of file Stmt.h.
References body_begin(), and body_end().
Stmt* clang::CompoundStmt::body_back | ( | ) | [inline] |
Definition at line 586 of file Stmt.h.
References body_empty(), and size().
Referenced by clang::Sema::ActOnStmtExpr(), ClassifyInternal(), clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(), and clang::Expr::isUnusedResultAWarning().
const Stmt* clang::CompoundStmt::body_back | ( | ) | const [inline] |
Definition at line 601 of file Stmt.h.
References body_empty(), and size().
body_iterator clang::CompoundStmt::body_begin | ( | ) | [inline] |
Definition at line 584 of file Stmt.h.
Referenced by body(), body_rend(), clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(), and isIdenticalStmt().
const_body_iterator clang::CompoundStmt::body_begin | ( | ) | const [inline] |
bool clang::CompoundStmt::body_empty | ( | ) | const [inline] |
Definition at line 577 of file Stmt.h.
References clang::Stmt::CompoundStmtBits.
Referenced by clang::Sema::ActOnStmtExpr(), body_back(), clang::Expr::isUnusedResultAWarning(), setLastStmt(), and clang::ento::ExprEngine::Visit().
body_iterator clang::CompoundStmt::body_end | ( | ) | [inline] |
Definition at line 585 of file Stmt.h.
References size().
Referenced by body(), body_rbegin(), clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(), and isIdenticalStmt().
const_body_iterator clang::CompoundStmt::body_end | ( | ) | const [inline] |
reverse_body_iterator clang::CompoundStmt::body_rbegin | ( | ) | [inline] |
Definition at line 606 of file Stmt.h.
References body_end().
Referenced by print_elem(), and clang::ento::ExprEngine::Visit().
const_reverse_body_iterator clang::CompoundStmt::body_rbegin | ( | ) | const [inline] |
Definition at line 616 of file Stmt.h.
References body_end().
reverse_body_iterator clang::CompoundStmt::body_rend | ( | ) | [inline] |
Definition at line 609 of file Stmt.h.
References body_begin().
const_reverse_body_iterator clang::CompoundStmt::body_rend | ( | ) | const [inline] |
Definition at line 620 of file Stmt.h.
References body_begin().
child_range clang::CompoundStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
Definition at line 635 of file Stmt.h.
References clang::Stmt::CompoundStmtBits.
Referenced by print_elem().
const_child_range clang::CompoundStmt::children | ( | ) | const [inline] |
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().
SourceLocation clang::CompoundStmt::getLBracLoc | ( | ) | const [inline] |
Definition at line 627 of file Stmt.h.
Referenced by clang::ento::PathDiagnosticLocation::createBeginBrace(), clang::CodeGen::CodeGenFunction::EmitCompoundStmt(), and clang::CodeGen::CodeGenFunction::EmitObjCAutoreleasePoolStmt().
SourceLocation clang::CompoundStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 625 of file Stmt.h.
Referenced by clang::SEHExceptStmt::getEndLoc(), and clang::ObjCAtSynchronizedStmt::getLocEnd().
SourceLocation clang::CompoundStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::CompoundStmt::getRBracLoc | ( | ) | const [inline] |
Definition at line 628 of file Stmt.h.
Referenced by clang::ento::PathDiagnosticLocation::createEndBrace(), and clang::CodeGen::CodeGenFunction::EmitObjCAutoreleasePoolStmt().
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 | ||
) |
Definition at line 291 of file Stmt.cpp.
References AttributeLangSupport::C, clang::Stmt::CompoundStmtBits, and clang::ASTContext::Deallocate().
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().
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.