clang-tools 22.0.0git
|
Maps Stmts to the CFGBlock that contains them. More...
#include <ExprSequence.h>
Public Member Functions | |
StmtToBlockMap (const CFG *TheCFG, ASTContext *TheContext) | |
Initializes the map for the given CFG. | |
const CFGBlock * | blockContainingStmt (const Stmt *S) const |
Returns the block that S is contained in. |
Maps Stmts to the CFGBlock that contains them.
Some Stmts may be contained in more than one CFGBlock; in this case, they are mapped to the innermost block (i.e. the one that is furthest from the root of the tree).
Definition at line 102 of file ExprSequence.h.
clang::tidy::utils::StmtToBlockMap::StmtToBlockMap | ( | const CFG * | TheCFG, |
ASTContext * | TheContext ) |
Initializes the map for the given CFG.
Definition at line 266 of file ExprSequence.cpp.
const CFGBlock * clang::tidy::utils::StmtToBlockMap::blockContainingStmt | ( | const Stmt * | S | ) | const |
Returns the block that S
is contained in.
Some Stmts may be contained in more than one CFGBlock; in this case, this function returns the innermost block (i.e. the one that is furthest from the root of the tree).
Definition at line 276 of file ExprSequence.cpp.
References clang::tidy::utils::getParentStmts().