clang  6.0.0svn
Protected Types | Protected Member Functions | Protected Attributes | List of all members
clang::StmtIteratorBase Class Reference

#include "clang/AST/StmtIterator.h"

Inheritance diagram for clang::StmtIteratorBase:
Inheritance graph
[legend]
Collaboration diagram for clang::StmtIteratorBase:
Collaboration graph
[legend]

Protected Types

enum  { StmtMode = 0x0, SizeOfTypeVAMode = 0x1, DeclGroupMode = 0x2, Flags = 0x3 }
 

Protected Member Functions

bool inDeclGroup () const
 
bool inSizeOfTypeVA () const
 
bool inStmt () const
 
const VariableArrayTypegetVAPtr () const
 
void setVAPtr (const VariableArrayType *P)
 
void NextDecl (bool ImmediateAdvance=true)
 
bool HandleDecl (Decl *D)
 
void NextVA ()
 
Stmt *& GetDeclExpr () const
 
 StmtIteratorBase (Stmt **s)
 
 StmtIteratorBase (const VariableArrayType *t)
 
 StmtIteratorBase (Decl **dgi, Decl **dge)
 
 StmtIteratorBase ()
 

Protected Attributes

union {
   Stmt **   stmt
 
   Decl **   DGI
 
}; 
 
uintptr_t RawVAPtr
 
Decl ** DGE
 

Detailed Description

Definition at line 30 of file StmtIterator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
StmtMode 
SizeOfTypeVAMode 
DeclGroupMode 
Flags 

Definition at line 32 of file StmtIterator.h.

Constructor & Destructor Documentation

◆ StmtIteratorBase() [1/4]

clang::StmtIteratorBase::StmtIteratorBase ( Stmt **  s)
inlineprotected

Definition at line 69 of file StmtIterator.h.

References StmtIteratorBase().

◆ StmtIteratorBase() [2/4]

StmtIteratorBase::StmtIteratorBase ( const VariableArrayType t)
protected

Definition at line 100 of file StmtIterator.cpp.

References RawVAPtr.

◆ StmtIteratorBase() [3/4]

StmtIteratorBase::StmtIteratorBase ( Decl **  dgi,
Decl **  dge 
)
protected

Definition at line 95 of file StmtIterator.cpp.

References NextDecl().

◆ StmtIteratorBase() [4/4]

clang::StmtIteratorBase::StmtIteratorBase ( )
inlineprotected

Definition at line 72 of file StmtIterator.h.

Referenced by StmtIteratorBase().

Member Function Documentation

◆ GetDeclExpr()

Stmt *& StmtIteratorBase::GetDeclExpr ( ) const
protected

◆ getVAPtr()

const VariableArrayType* clang::StmtIteratorBase::getVAPtr ( ) const
inlineprotected

◆ HandleDecl()

bool StmtIteratorBase::HandleDecl ( Decl D)
protected

Definition at line 70 of file StmtIterator.cpp.

References FindVA(), and setVAPtr().

Referenced by NextDecl(), and setVAPtr().

◆ inDeclGroup()

bool clang::StmtIteratorBase::inDeclGroup ( ) const
inlineprotected

Definition at line 42 of file StmtIterator.h.

References DeclGroupMode, and Flags.

Referenced by GetDeclExpr(), NextDecl(), NextVA(), and setVAPtr().

◆ inSizeOfTypeVA()

bool clang::StmtIteratorBase::inSizeOfTypeVA ( ) const
inlineprotected

Definition at line 46 of file StmtIterator.h.

References Flags, and SizeOfTypeVAMode.

Referenced by NextVA(), and setVAPtr().

◆ inStmt()

bool clang::StmtIteratorBase::inStmt ( ) const
inlineprotected

◆ NextDecl()

void StmtIteratorBase::NextDecl ( bool  ImmediateAdvance = true)
protected

◆ NextVA()

void StmtIteratorBase::NextVA ( )
protected

◆ setVAPtr()

void clang::StmtIteratorBase::setVAPtr ( const VariableArrayType P)
inlineprotected

Definition at line 58 of file StmtIterator.h.

References Flags, GetDeclExpr(), HandleDecl(), inDeclGroup(), inSizeOfTypeVA(), NextDecl(), NextVA(), and P.

Referenced by HandleDecl(), and NextVA().

Member Data Documentation

◆ @82

union { ... }

◆ DGE

Decl** clang::StmtIteratorBase::DGE
protected

Definition at line 40 of file StmtIterator.h.

Referenced by NextDecl().

◆ DGI

Decl** clang::StmtIteratorBase::DGI

◆ RawVAPtr

uintptr_t clang::StmtIteratorBase::RawVAPtr
protected

◆ stmt

Stmt** clang::StmtIteratorBase::stmt

The documentation for this class was generated from the following files: