clang 24.0.0git
clang::ento::SymExpr::symbol_iterator Class Reference

Iterator over symbols that the current symbol depends on. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/SymExpr.h"

Public Member Functions

 symbol_iterator ()=default
 symbol_iterator (SmallVectorImpl< const SymExpr * > *WL)
symbol_iterator & operator++ ()
const SymExpr * operator* () const
bool operator== (const symbol_iterator &X) const
bool operator!= (const symbol_iterator &X) const

Detailed Description

Iterator over symbols that the current symbol depends on.

For SymbolData, it's the symbol itself; for expressions, it's the expression symbol and all the operands in it. Note, SymbolDerived is treated as SymbolData - the iterator will NOT visit the parent region.

The worklist is owned by the symbol_range, so the iterators are single-pass and only meant to be compared against the end iterator.

Definition at line 99 of file SymExpr.h.

Constructor & Destructor Documentation

◆ symbol_iterator() [1/2]

clang::ento::SymExpr::symbol_iterator::symbol_iterator ( )
default

Referenced by operator!=(), and operator==().

◆ symbol_iterator() [2/2]

clang::ento::SymExpr::symbol_iterator::symbol_iterator ( SmallVectorImpl< const SymExpr * > * WL)
inlineexplicit

Definition at line 107 of file SymExpr.h.

Member Function Documentation

◆ operator!=()

bool clang::ento::SymExpr::symbol_iterator::operator!= ( const symbol_iterator & X) const
inline

Definition at line 119 of file SymExpr.h.

References symbol_iterator(), and X.

◆ operator*()

const SymExpr * clang::ento::SymExpr::symbol_iterator::operator* ( ) const
inline

Definition at line 111 of file SymExpr.h.

References clang::ento::SymExpr::SymExpr().

◆ operator++()

SymExpr::symbol_iterator & clang::ento::SymExpr::symbol_iterator::operator++ ( )
inline

Definition at line 194 of file SymExpr.h.

References clang::isa(), and clang::ento::SymExpr::SymExpr().

◆ operator==()

bool clang::ento::SymExpr::symbol_iterator::operator== ( const symbol_iterator & X) const
inline

Definition at line 116 of file SymExpr.h.

References symbol_iterator(), and X.


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