clang 20.0.0git
|
A utility class that visits the reachable symbols using a custom SymbolVisitor. More...
#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
Public Member Functions | |
ScanReachableSymbols (ProgramStateRef st, SymbolVisitor &v) | |
bool | scan (nonloc::LazyCompoundVal val) |
bool | scan (nonloc::CompoundVal val) |
bool | scan (SVal val) |
bool | scan (const MemRegion *R) |
bool | scan (const SymExpr *sym) |
A utility class that visits the reachable symbols using a custom SymbolVisitor.
Terminates recursive traversal when the visitor function returns false.
Definition at line 885 of file ProgramState.h.
|
inline |
Definition at line 892 of file ProgramState.h.
Definition at line 615 of file ProgramState.cpp.
References scan(), clang::ento::StoreManager::scanReachableSymbols(), clang::ento::SymbolVisitor::VisitMemRegion(), and clang::ento::SymbolVisitor::VisitSymbol().
Definition at line 582 of file ProgramState.cpp.
References clang::ento::SymExpr::symbols(), and clang::ento::SymbolVisitor::VisitSymbol().
bool ScanReachableSymbols::scan | ( | nonloc::CompoundVal | val | ) |
Definition at line 574 of file ProgramState.cpp.
bool ScanReachableSymbols::scan | ( | nonloc::LazyCompoundVal | val | ) |
Definition at line 561 of file ProgramState.cpp.
References clang::ento::MemRegion::getBaseRegion(), clang::ento::nonloc::LazyCompoundVal::getCVData(), clang::ento::nonloc::LazyCompoundVal::getRegion(), clang::ento::nonloc::LazyCompoundVal::getStore(), and clang::ento::StoreManager::scanReachableSymbols().
Referenced by clang::ento::EnvironmentManager::removeDeadBindings(), and scan().
Definition at line 595 of file ProgramState.cpp.
References clang::ento::SVal::getAs(), clang::ento::SVal::getAsSymbol(), scan(), and X.