clang
7.0.0svn
|
#include "clang/AST/ParentMap.h"
Public Member Functions | |
ParentMap (Stmt *ASTRoot) | |
~ParentMap () | |
void | addStmt (Stmt *S) |
Adds and/or updates the parent/child-relations of the complete stmt tree of S. More... | |
void | setParent (const Stmt *S, const Stmt *Parent) |
Manually sets the parent of S to Parent . More... | |
Stmt * | getParent (Stmt *) const |
Stmt * | getParentIgnoreParens (Stmt *) const |
Stmt * | getParentIgnoreParenCasts (Stmt *) const |
Stmt * | getParentIgnoreParenImpCasts (Stmt *) const |
Stmt * | getOuterParenParent (Stmt *) const |
const Stmt * | getParent (const Stmt *S) const |
const Stmt * | getParentIgnoreParens (const Stmt *S) const |
const Stmt * | getParentIgnoreParenCasts (const Stmt *S) const |
bool | hasParent (Stmt *S) const |
bool | isConsumedExpr (Expr *E) const |
bool | isConsumedExpr (const Expr *E) const |
Definition at line 21 of file ParentMap.h.
ParentMap::ParentMap | ( | Stmt * | ASTRoot | ) |
Definition at line 98 of file ParentMap.cpp.
ParentMap::~ParentMap | ( | ) |
Definition at line 106 of file ParentMap.cpp.
void ParentMap::addStmt | ( | Stmt * | S | ) |
Adds and/or updates the parent/child-relations of the complete stmt tree of S.
All children of S including indirect descendants are visited and updated or inserted but not the parents of S.
Definition at line 110 of file ParentMap.cpp.
Definition at line 151 of file ParentMap.cpp.
Definition at line 123 of file ParentMap.cpp.
Referenced by findExecutedLines(), getParent(), hasParent(), isContainedByStmt(), lexicalContains(), recordFixedType(), and clang::ento::ExprEngine::VisitCXXConstructExpr().
Definition at line 43 of file ParentMap.h.
References getParent().
Definition at line 134 of file ParentMap.cpp.
Referenced by getParentIgnoreParenCasts(), LookThroughTransitiveAssignmentsAndCommaOperators(), and rewriteToArrayLiteral().
Definition at line 51 of file ParentMap.h.
References getParentIgnoreParenCasts().
Definition at line 143 of file ParentMap.cpp.
Definition at line 129 of file ParentMap.cpp.
Referenced by getParentIgnoreParens(), and getStmtParent().
Definition at line 47 of file ParentMap.h.
References getParentIgnoreParens().
Definition at line 55 of file ParentMap.h.
References getParent(), and isConsumedExpr().
Definition at line 160 of file ParentMap.cpp.
Referenced by hasParent(), isConsumedExpr(), clang::ento::ExplodedGraph::isInterestingLValueExpr(), LookThroughTransitiveAssignmentsAndCommaOperators(), and supportsNilWithFloatRet().
Definition at line 61 of file ParentMap.h.
References isConsumedExpr().
Manually sets the parent of S
to Parent
.
If S
is already in the map, this method will update the mapping.
Definition at line 116 of file ParentMap.cpp.