clang 20.0.0git
|
Maps statements to the environments of basic blocks that contain them. More...
#include "clang/Analysis/FlowSensitive/Transfer.h"
Public Member Functions | |
StmtToEnvMap (const AdornedCFG &ACFG, llvm::ArrayRef< std::optional< TypeErasedDataflowAnalysisState > > BlockToState, unsigned CurBlockID, const TypeErasedDataflowAnalysisState &CurState) | |
const Environment * | getEnvironment (const Stmt &S) const |
Returns the environment of the basic block that contains S . | |
Maps statements to the environments of basic blocks that contain them.
Definition at line 26 of file Transfer.h.
|
inline |
Definition at line 32 of file Transfer.h.
const Environment * clang::dataflow::StmtToEnvMap::getEnvironment | ( | const Stmt & | S | ) | const |
Returns the environment of the basic block that contains S
.
The result is guaranteed never to be null.
Definition at line 42 of file Transfer.cpp.
References clang::Block, clang::dataflow::AdornedCFG::blockForStmt(), clang::dataflow::TypeErasedDataflowAnalysisState::Env, and clang::dataflow::AdornedCFG::isBlockReachable().