clang API Documentation
#include <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. All children of S including indirect descendants are visited and updated or inserted but not the parents of S. | |
| 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 35 of file ParentMap.cpp.
References BuildParentMap().
| ParentMap::~ParentMap | ( | ) |
Definition at line 43 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 47 of file ParentMap.cpp.
References BuildParentMap().
Definition at line 81 of file ParentMap.cpp.
References getParent(), and S.
Definition at line 53 of file ParentMap.cpp.
Referenced by getOuterParenParent(), getParent(), getParentIgnoreParenCasts(), getParentIgnoreParenImpCasts(), getParentIgnoreParens(), getValidSourceLocation(), hasParent(), isConsumedExpr(), and isPropertyAccess().
Definition at line 38 of file ParentMap.h.
References getParent().
Definition at line 64 of file ParentMap.cpp.
References getParent(), and S.
Referenced by getParentIgnoreParenCasts().
Definition at line 46 of file ParentMap.h.
References getParentIgnoreParenCasts().
Definition at line 73 of file ParentMap.cpp.
References getParent(), and S.
Definition at line 59 of file ParentMap.cpp.
References getParent(), and S.
Referenced by clang::CFGStmtMap::getBlock(), getParentIgnoreParens(), and IsNested().
Definition at line 42 of file ParentMap.h.
References getParentIgnoreParens().
| bool clang::ParentMap::hasParent | ( | Stmt * | S | ) | const [inline] |
Definition at line 50 of file ParentMap.h.
References getParent().
| bool ParentMap::isConsumedExpr | ( | Expr * | E | ) | const |
Definition at line 90 of file ParentMap.cpp.
References clang::BO_Comma, clang::BinaryOperator::getOpcode(), getParent(), clang::BinaryOperator::getRHS(), clang::Stmt::getStmtClass(), and P.
Referenced by isConsumedExpr(), IsNested(), and shouldRemoveDeadBindings().
| bool clang::ParentMap::isConsumedExpr | ( | const Expr * | E | ) | const [inline] |
Definition at line 56 of file ParentMap.h.
References isConsumedExpr().