clang 19.0.0git
Classes | Public Member Functions | Friends | List of all members
clang::ParentMapContext::ParentMap Class Reference

Classes

class  ASTVisitor
 A RecursiveASTVisitor that builds a map from nodes to their parents as defined by the RecursiveASTVisitor. More...
 

Public Member Functions

 ParentMap (ASTContext &Ctx)
 
 ~ParentMap ()
 
DynTypedNodeList getParents (TraversalKind TK, const DynTypedNode &Node)
 
DynTypedNodeList AscendIgnoreUnlessSpelledInSource (const Expr *E, const Expr *Child)
 

Friends

template<typename , typename... >
struct ::MatchParents
 

Detailed Description

Definition at line 59 of file ParentMapContext.cpp.

Constructor & Destructor Documentation

◆ ParentMap()

clang::ParentMapContext::ParentMap::ParentMap ( ASTContext Ctx)

◆ ~ParentMap()

clang::ParentMapContext::ParentMap::~ParentMap ( )
inline

Definition at line 128 of file ParentMapContext.cpp.

References clang::DynTypedNode::get().

Member Function Documentation

◆ AscendIgnoreUnlessSpelledInSource()

DynTypedNodeList clang::ParentMapContext::ParentMap::AscendIgnoreUnlessSpelledInSource ( const Expr E,
const Expr Child 
)
inline

Definition at line 221 of file ParentMapContext.cpp.

References clang::C, clang::DynTypedNode::create(), and P.

◆ getParents()

DynTypedNodeList clang::ParentMapContext::ParentMap::getParents ( TraversalKind  TK,
const DynTypedNode Node 
)
inline

Friends And Related Function Documentation

◆ ::MatchParents

template<typename , typename... >
friend struct ::MatchParents
friend

Definition at line 61 of file ParentMapContext.cpp.


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