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


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)


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

Definition at line 109 of file ParentMapContext.cpp.

References clang::DynTypedNode::get().

Member Function Documentation

◆ AscendIgnoreUnlessSpelledInSource()

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

Definition at line 202 of file ParentMapContext.cpp.

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

◆ getParents()

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

Friends And Related Function Documentation

◆ ::MatchParents

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

Definition at line 61 of file ParentMapContext.cpp.

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