Go to the documentation of this file.
14 #include "llvm/ADT/DenseMap.h"
19 using namespace clang;
21 typedef llvm::DenseMap<const Stmt*, CFGBlock*>
SMap;
33 SMap::iterator I =
SM->find(
X);
ElementList::iterator iterator
static CFGStmtMap * Build(CFG *C, ParentMap *PM)
Returns a new CFGMap for the given CFG.
Represents a source-level, intra-procedural CFG that represents the control-flow of a Stmt.
Represents a single basic block in a source-level CFG.
static SMap * AsMap(void *m)
CFGBlock * getBlock(Stmt *S)
Returns the CFGBlock the specified Stmt* appears in.
llvm::DenseMap< const Stmt *, CFGBlock * > SMap
static void Accumulate(SMap &SM, CFGBlock *B)
Optional< T > getAs() const
Convert to the specified CFGElement type, returning None if this CFGElement is not of the desired typ...
Represents a top-level expression in a basic block.
Stmt - This represents one statement.
Stmt * getTerminatorStmt()
Stmt * getParentIgnoreParens(Stmt *) const