clang 22.0.0git
clang::CFGStmtMap Class Reference

#include "clang/Analysis/CFGStmtMap.h"

Public Member Functions

 CFGStmtMap (const CFG &C, const ParentMap &PM)
const CFGBlockgetBlock (const Stmt *S) const
 Returns the CFGBlock the specified Stmt* appears in.

Detailed Description

Definition at line 25 of file CFGStmtMap.h.

Constructor & Destructor Documentation

◆ CFGStmtMap()

CFGStmtMap::CFGStmtMap ( const CFG & C,
const ParentMap & PM )

Definition at line 36 of file CFGStmtMap.cpp.

References clang::C.

Member Function Documentation

◆ getBlock()

const CFGBlock * CFGStmtMap::getBlock ( const Stmt * S) const

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 21 of file CFGStmtMap.cpp.

References X.

Referenced by clang::ento::CallEvent::getCalleeStackFrame(), clang::ento::ExplodedNode::getCFGBlock(), and clang::ento::SuppressInlineDefensiveChecksVisitor::VisitNode().


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