clang API Documentation

Public Member Functions
clang::ParentMap Class Reference

#include <ParentMap.h>

List of all members.

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.
StmtgetParent (Stmt *) const
StmtgetParentIgnoreParens (Stmt *) const
StmtgetParentIgnoreParenCasts (Stmt *) const
StmtgetParentIgnoreParenImpCasts (Stmt *) const
StmtgetOuterParenParent (Stmt *) const
const StmtgetParent (const Stmt *S) const
const StmtgetParentIgnoreParens (const Stmt *S) const
const StmtgetParentIgnoreParenCasts (const Stmt *S) const
bool hasParent (Stmt *S) const
bool isConsumedExpr (Expr *E) const
bool isConsumedExpr (const Expr *E) const

Detailed Description

Definition at line 21 of file ParentMap.h.


Constructor & Destructor Documentation

ParentMap::ParentMap ( Stmt ASTRoot)

Definition at line 35 of file ParentMap.cpp.

References BuildParentMap().

ParentMap::~ParentMap ( )

Definition at line 43 of file ParentMap.cpp.


Member Function Documentation

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().

Stmt * ParentMap::getOuterParenParent ( Stmt S) const

Definition at line 81 of file ParentMap.cpp.

References getParent(), and S.

Stmt * ParentMap::getParent ( Stmt S) const
const Stmt* clang::ParentMap::getParent ( const Stmt S) const [inline]

Definition at line 38 of file ParentMap.h.

References getParent().

Stmt * ParentMap::getParentIgnoreParenCasts ( Stmt S) const

Definition at line 64 of file ParentMap.cpp.

References getParent(), and S.

Referenced by getParentIgnoreParenCasts().

const Stmt* clang::ParentMap::getParentIgnoreParenCasts ( const Stmt S) const [inline]

Definition at line 46 of file ParentMap.h.

References getParentIgnoreParenCasts().

Stmt * ParentMap::getParentIgnoreParenImpCasts ( Stmt S) const

Definition at line 73 of file ParentMap.cpp.

References getParent(), and S.

Stmt * ParentMap::getParentIgnoreParens ( Stmt S) const

Definition at line 59 of file ParentMap.cpp.

References getParent(), and S.

Referenced by clang::CFGStmtMap::getBlock(), getParentIgnoreParens(), and IsNested().

const Stmt* clang::ParentMap::getParentIgnoreParens ( const Stmt S) const [inline]

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
bool clang::ParentMap::isConsumedExpr ( const Expr E) const [inline]

Definition at line 56 of file ParentMap.h.

References isConsumedExpr().


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