13#ifndef LLVM_CLANG_AST_STMTITERATOR_H
14#define LLVM_CLANG_AST_STMTITERATOR_H
25class VariableArrayType;
69 void NextDecl(
bool ImmediateAdvance =
true);
76template <
typename DERIVED,
typename REFERENCE>
101 return static_cast<DERIVED&
>(*this);
105 DERIVED tmp =
static_cast<DERIVED&
>(*this);
110 friend bool operator==(
const DERIVED &LHS,
const DERIVED &RHS) {
111 return LHS.stmt == RHS.stmt && LHS.DGI == RHS.DGI &&
112 LHS.RawVAPtr == RHS.RawVAPtr;
115 friend bool operator!=(
const DERIVED &LHS,
const DERIVED &RHS) {
116 return !(LHS == RHS);
126struct ConstStmtIterator;
152 const_cast<
Stmt **>(S)) {}
__device__ __2f16 float __ockl_bool s
Decl - This represents one declaration (or definition), e.g.
void NextDecl(bool ImmediateAdvance=true)
void setVAPtr(const VariableArrayType *P)
Stmt *& GetDeclExpr() const
const VariableArrayType * getVAPtr() const
bool inSizeOfTypeVA() const
StmtIteratorBase(Stmt **s)
friend bool operator!=(const DERIVED &LHS, const DERIVED &RHS)
REFERENCE operator*() const
StmtIteratorImpl(Stmt **s)
StmtIteratorImpl(const VariableArrayType *t)
REFERENCE operator->() const
std::forward_iterator_tag iterator_category
StmtIteratorImpl(const StmtIteratorBase &RHS)
std::ptrdiff_t difference_type
friend bool operator==(const DERIVED &LHS, const DERIVED &RHS)
StmtIteratorImpl(Decl **dgi, Decl **dge)
StmtIteratorImpl()=default
Stmt - This represents one statement.
Represents a C array with a specified size that is not an integer-constant-expression.
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
The JSON file list parser is used to communicate input to InstallAPI.
StmtIterator cast_away_const(const ConstStmtIterator &RHS)
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
ConstStmtIterator(const StmtIterator &RHS)
ConstStmtIterator(Stmt *const *S)
ConstStmtIterator()=default
StmtIterator(Decl **dgi, Decl **dge)
StmtIterator(const VariableArrayType *t)
friend StmtIterator cast_away_const(const ConstStmtIterator &RHS)