clang API Documentation

Public Member Functions | Static Public Member Functions
clang::CFGStmtMap Class Reference

#include <CFGStmtMap.h>

List of all members.

Public Member Functions

 ~CFGStmtMap ()
CFGBlockgetBlock (Stmt *S)
const CFGBlockgetBlock (const Stmt *S) const

Static Public Member Functions

static CFGStmtMapBuild (CFG *C, ParentMap *PM)

Detailed Description

Definition at line 27 of file CFGStmtMap.h.


Constructor & Destructor Documentation

Definition at line 25 of file CFGStmtMap.cpp.

References AsMap().


Member Function Documentation

CFGStmtMap * CFGStmtMap::Build ( CFG C,
ParentMap PM 
) [static]

Returns a new CFGMap for the given CFG. It is the caller's responsibility to 'delete' this object when done using it.

Definition at line 78 of file CFGStmtMap.cpp.

References Accumulate(), clang::CFG::begin(), clang::CFG::end(), and SM.

Referenced by clang::AnalysisDeclContext::getCFGStmtMap().

Returns the CFGBlock the specified Stmt* appears in. For Stmt* that are terminators, the CFGBlock is the block they appear as a terminator, and not the block they appear as a block-level expression (e.g, '&&'). CaseStmts and LabelStmts map to the CFGBlock they label.

Definition at line 27 of file CFGStmtMap.cpp.

References AsMap(), clang::ParentMap::getParentIgnoreParens(), S, SM, and X.

Referenced by getBlock().

const CFGBlock* clang::CFGStmtMap::getBlock ( const Stmt S) const [inline]

Definition at line 46 of file CFGStmtMap.h.

References getBlock().


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