clang 22.0.0git
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 60 of file ParentMapContext.cpp.

Constructor & Destructor Documentation

◆ ParentMap()

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

◆ ~ParentMap()

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

Definition at line 134 of file ParentMapContext.cpp.

Member Function Documentation

◆ AscendIgnoreUnlessSpelledInSource()

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

Definition at line 227 of file ParentMapContext.cpp.

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

Referenced by getParents().

◆ getParents()

◆ ::MatchParents

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

Definition at line 62 of file ParentMapContext.cpp.

References contains().


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