clang 20.0.0git
|
An immutable map from EnvironemntEntries to SVals. More...
#include "clang/StaticAnalyzer/Core/PathSensitive/Environment.h"
Public Types | |
using | iterator = BindingsTy::iterator |
Public Member Functions | |
iterator | begin () const |
iterator | end () const |
SVal | getSVal (const EnvironmentEntry &E, SValBuilder &svalBuilder) const |
Fetches the current binding of the expression in the Environment. | |
void | Profile (llvm::FoldingSetNodeID &ID) const |
Profile - Used to profile the contents of this object for inclusion in a FoldingSet. | |
bool | operator== (const Environment &RHS) const |
void | printJson (raw_ostream &Out, const ASTContext &Ctx, const LocationContext *LCtx=nullptr, const char *NL="\n", unsigned int Space=0, bool IsDot=false) const |
Static Public Member Functions | |
static void | Profile (llvm::FoldingSetNodeID &ID, const Environment *env) |
Profile - Profile the contents of an Environment object for use in a FoldingSet. | |
Friends | |
class | EnvironmentManager |
An immutable map from EnvironemntEntries to SVals.
Definition at line 56 of file Environment.h.
using clang::ento::Environment::iterator = BindingsTy::iterator |
Definition at line 69 of file Environment.h.
|
inline |
Definition at line 71 of file Environment.h.
Referenced by clang::ento::EnvironmentManager::removeDeadBindings().
|
inline |
Definition at line 72 of file Environment.h.
Referenced by clang::ento::EnvironmentManager::removeDeadBindings().
SVal Environment::getSVal | ( | const EnvironmentEntry & | E, |
SValBuilder & | svalBuilder | ||
) | const |
Fetches the current binding of the expression in the Environment.
Definition at line 89 of file Environment.cpp.
References clang::ento::SValBuilder::getConstantVal(), clang::ento::EnvironmentEntry::getLocationContext(), clang::ento::EnvironmentEntry::getStmt(), and getSVal().
Referenced by getSVal().
|
inline |
Definition at line 90 of file Environment.h.
void Environment::printJson | ( | raw_ostream & | Out, |
const ASTContext & | Ctx, | ||
const LocationContext * | LCtx = nullptr , |
||
const char * | NL = "\n" , |
||
unsigned int | Space = 0 , |
||
bool | IsDot = false |
||
) | const |
Definition at line 217 of file Environment.cpp.
References clang::LocationContext::getParent(), clang::ASTContext::getPrintingPolicy(), clang::LocationContext::getStackFrame(), and clang::LocationContext::printJson().
Referenced by clang::ento::ProgramState::printJson().
|
inline |
Profile - Used to profile the contents of this object for inclusion in a FoldingSet.
Definition at line 86 of file Environment.h.
|
inlinestatic |
Profile - Profile the contents of an Environment object for use in a FoldingSet.
Definition at line 80 of file Environment.h.
References ID.
Referenced by Profile().
|
friend |
Definition at line 58 of file Environment.h.