|
clang
5.0.0
|
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (range-declarator : range-expression)'. More...
#include "clang/AST/StmtCXX.h"
Public Member Functions | |
| CXXForRangeStmt (DeclStmt *Range, DeclStmt *Begin, DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body, SourceLocation FL, SourceLocation CAL, SourceLocation CL, SourceLocation RPL) | |
| CXXForRangeStmt (EmptyShell Empty) | |
| VarDecl * | getLoopVariable () |
| Expr * | getRangeInit () |
| const VarDecl * | getLoopVariable () const |
| const Expr * | getRangeInit () const |
| DeclStmt * | getRangeStmt () |
| DeclStmt * | getBeginStmt () |
| DeclStmt * | getEndStmt () |
| Expr * | getCond () |
| Expr * | getInc () |
| DeclStmt * | getLoopVarStmt () |
| Stmt * | getBody () |
| const DeclStmt * | getRangeStmt () const |
| const DeclStmt * | getBeginStmt () const |
| const DeclStmt * | getEndStmt () const |
| const Expr * | getCond () const |
| const Expr * | getInc () const |
| const DeclStmt * | getLoopVarStmt () const |
| const Stmt * | getBody () const |
| void | setRangeInit (Expr *E) |
| void | setRangeStmt (Stmt *S) |
| void | setBeginStmt (Stmt *S) |
| void | setEndStmt (Stmt *S) |
| void | setCond (Expr *E) |
| void | setInc (Expr *E) |
| void | setLoopVarStmt (Stmt *S) |
| void | setBody (Stmt *S) |
| SourceLocation | getForLoc () const |
| SourceLocation | getCoawaitLoc () const |
| SourceLocation | getColonLoc () const |
| SourceLocation | getRParenLoc () const |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| child_range | children () |
Public Member Functions inherited from clang::Stmt | |
| void * | operator new (size_t bytes, const ASTContext &C, unsigned alignment=8) |
| void * | operator new (size_t bytes, const ASTContext *C, unsigned alignment=8) |
| void * | operator new (size_t bytes, void *mem) noexcept |
| void | operator delete (void *, const ASTContext &, unsigned) noexcept |
| void | operator delete (void *, const ASTContext *, unsigned) noexcept |
| void | operator delete (void *, size_t) noexcept |
| void | operator delete (void *, void *) noexcept |
| Stmt (StmtClass SC) | |
| StmtClass | getStmtClass () const |
| const char * | getStmtClassName () const |
| SourceRange | getSourceRange () const LLVM_READONLY |
| SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. More... | |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| void | dump () const |
Dumps the specified AST fragment and all subtrees to llvm::errs(). More... | |
| void | dump (SourceManager &SM) const |
| void | dump (raw_ostream &OS, SourceManager &SM) const |
| void | dump (raw_ostream &OS) const |
| void | dumpColor () const |
| dumpColor - same as dump(), but forces color highlighting. More... | |
| void | dumpPretty (const ASTContext &Context) const |
| dumpPretty/printPretty - These two methods do a "pretty print" of the AST back to its original source language syntax. More... | |
| void | printPretty (raw_ostream &OS, PrinterHelper *Helper, const PrintingPolicy &Policy, unsigned Indentation=0) const |
| void | viewAST () const |
| viewAST - Visualize an AST rooted at this Stmt* using GraphViz. More... | |
| Stmt * | IgnoreImplicit () |
| Skip past any implicit AST nodes which might surround this statement, such as ExprWithCleanups or ImplicitCastExpr nodes. More... | |
| const Stmt * | IgnoreImplicit () const |
| Stmt * | IgnoreContainers (bool IgnoreCaptured=false) |
| Skip no-op (attributed, compound) container stmts and skip captured stmt at the top, if IgnoreCaptured is true. More... | |
| const Stmt * | stripLabelLikeStatements () const |
| Strip off all label-like statements. More... | |
| Stmt * | stripLabelLikeStatements () |
| child_range | children () |
| const_child_range | children () const |
| child_iterator | child_begin () |
| child_iterator | child_end () |
| const_child_iterator | child_begin () const |
| const_child_iterator | child_end () const |
| void | Profile (llvm::FoldingSetNodeID &ID, const ASTContext &Context, bool Canonical) const |
| Produce a unique representation of the given statement. More... | |
| void | ProcessODRHash (llvm::FoldingSetNodeID &ID, ODRHash &Hash) const |
| Calculate a unique representation for a statement that is stable across compiler invocations. More... | |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
Static Public Member Functions inherited from clang::Stmt | |
| static void | addStmtClass (const StmtClass s) |
| static void | EnableStatistics () |
| static void | PrintStats () |
Friends | |
| class | ASTStmtReader |
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (range-declarator : range-expression)'.
This is stored in a partially-desugared form to allow full semantic analysis of the constituent components. The original syntactic components can be extracted using getLoopVariable and getRangeInit.
| CXXForRangeStmt::CXXForRangeStmt | ( | DeclStmt * | Range, |
| DeclStmt * | Begin, | ||
| DeclStmt * | End, | ||
| Expr * | Cond, | ||
| Expr * | Inc, | ||
| DeclStmt * | LoopVar, | ||
| Stmt * | Body, | ||
| SourceLocation | FL, | ||
| SourceLocation | CAL, | ||
| SourceLocation | CL, | ||
| SourceLocation | RPL | ||
| ) |
Definition at line 52 of file StmtCXX.cpp.
|
inline |
|
inline |
Definition at line 203 of file StmtCXX.h.
References clang::Stmt::getStmtClass().
|
inline |
Definition at line 155 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 162 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), isInLoopBody(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 194 of file StmtCXX.h.
Referenced by clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
Definition at line 195 of file StmtCXX.h.
References ColonLoc.
Referenced by clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
Definition at line 159 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), isConditionForTerminator(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 158 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 193 of file StmtCXX.h.
Referenced by clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
Definition at line 160 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), isInLoopBody(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 199 of file StmtCXX.h.
References clang::Stmt::getLocEnd().
|
inline |
Definition at line 198 of file StmtCXX.h.
Referenced by DiagnoseForRangeVariableCopies().
| VarDecl * CXXForRangeStmt::getLoopVariable | ( | ) |
Definition at line 80 of file StmtCXX.cpp.
References getLoopVarStmt().
Referenced by DiagnoseForRangeVariableCopies(), and getLoopVariable().
| const VarDecl * CXXForRangeStmt::getLoopVariable | ( | ) | const |
Definition at line 86 of file StmtCXX.cpp.
References getLoopVariable().
|
inline |
Definition at line 161 of file StmtCXX.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), getLoopVariable(), isInLoopBody(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
| Expr * CXXForRangeStmt::getRangeInit | ( | ) |
Definition at line 69 of file StmtCXX.cpp.
References clang::VarDecl::getInit(), getRangeStmt(), and clang::DeclStmt::getSingleDecl().
Referenced by DiagnoseForRangeVariableCopies(), getRangeInit(), and isConditionForTerminator().
| const Expr * CXXForRangeStmt::getRangeInit | ( | ) | const |
Definition at line 76 of file StmtCXX.cpp.
References getRangeInit().
|
inline |
Definition at line 154 of file StmtCXX.h.
References RANGE.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(), EvaluateStmt(), getRangeInit(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 196 of file StmtCXX.h.
Referenced by clang::Sema::FinishCXXForRangeStmt(), and clang::ASTNodeImporter::VisitCXXForRangeStmt().
|
inline |
|
inline |
Definition at line 191 of file StmtCXX.h.
References S.
Referenced by clang::Sema::FinishCXXForRangeStmt().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
1.8.6