clang 22.0.0git
clang::StmtIteratorBase Class Reference

#include "clang/AST/StmtIterator.h"

Inheritance diagram for clang::StmtIteratorBase:
[legend]

Protected Types

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

Protected Member Functions

 StmtIteratorBase (Stmt **s)
 StmtIteratorBase (const VariableArrayType *t)
 StmtIteratorBase (Decl **dgi, Decl **dge)
 StmtIteratorBase ()
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

Protected Attributes

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

Detailed Description

Definition at line 27 of file StmtIterator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
StmtMode 
SizeOfTypeVAMode 
DeclGroupMode 
Flags 

Definition at line 29 of file StmtIterator.h.

Constructor & Destructor Documentation

◆ StmtIteratorBase() [1/4]

◆ StmtIteratorBase() [2/4]

StmtIteratorBase::StmtIteratorBase ( const VariableArrayType * t)
protected

Definition at line 103 of file StmtIterator.cpp.

References DGI, clang::nullptr, RawVAPtr, and SizeOfTypeVAMode.

◆ StmtIteratorBase() [3/4]

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

Definition at line 98 of file StmtIterator.cpp.

References DeclGroupMode, DGE, DGI, NextDecl(), and RawVAPtr.

◆ StmtIteratorBase() [4/4]

clang::StmtIteratorBase::StmtIteratorBase ( )
inlineprotected

Definition at line 46 of file StmtIterator.h.

References clang::nullptr, and stmt.

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 73 of file StmtIterator.cpp.

References FindVA(), and setVAPtr().

Referenced by NextDecl().

◆ inDeclGroup()

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

Definition at line 48 of file StmtIterator.h.

References DeclGroupMode, Flags, and RawVAPtr.

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

◆ inSizeOfTypeVA()

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

Definition at line 52 of file StmtIterator.h.

References Flags, RawVAPtr, and SizeOfTypeVAMode.

Referenced by NextVA(), and setVAPtr().

◆ inStmt()

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

◆ NextDecl()

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

◆ NextVA()

◆ setVAPtr()

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

Definition at line 64 of file StmtIterator.h.

References Flags, inDeclGroup(), inSizeOfTypeVA(), and RawVAPtr.

Referenced by HandleDecl(), and NextVA().

Member Data Documentation

◆ [union]

union { ... } clang::StmtIteratorBase

◆ DGE

Decl** clang::StmtIteratorBase::DGE
protected

Definition at line 41 of file StmtIterator.h.

Referenced by NextDecl(), and StmtIteratorBase().

◆ DGI

Decl** clang::StmtIteratorBase::DGI

Definition at line 38 of file StmtIterator.h.

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

◆ RawVAPtr

uintptr_t clang::StmtIteratorBase::RawVAPtr = 0
protected

◆ stmt


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