clang 22.0.0git
clang::CallGraphNode Class Reference

#include "clang/Analysis/CallGraph.h"

Classes

struct  CallRecord

Public Types

using iterator = SmallVectorImpl<CallRecord>::iterator
using const_iterator = SmallVectorImpl<CallRecord>::const_iterator

Public Member Functions

 CallGraphNode (Decl *D)
iterator begin ()
 Iterators through all the callees/children of the node.
iterator end ()
const_iterator begin () const
const_iterator end () const
llvm::iterator_range< iteratorcallees ()
 Iterator access to callees/children of the node.
llvm::iterator_range< const_iteratorcallees () const
bool empty () const
unsigned size () const
void addCallee (CallRecord Call)
DeclgetDecl () const
FunctionDeclgetDefinition () const
void print (raw_ostream &os) const
void dump () const

Detailed Description

Definition at line 144 of file CallGraph.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 171 of file CallGraph.h.

◆ iterator

Definition at line 170 of file CallGraph.h.

Constructor & Destructor Documentation

◆ CallGraphNode()

clang::CallGraphNode::CallGraphNode ( Decl * D)
inline

Member Function Documentation

◆ addCallee()

void clang::CallGraphNode::addCallee ( CallRecord Call)
inline

Definition at line 190 of file CallGraph.h.

References clang::Call.

◆ begin() [1/2]

iterator clang::CallGraphNode::begin ( )
inline

Iterators through all the callees/children of the node.

Definition at line 174 of file CallGraph.h.

Referenced by callees(), callees(), llvm::GraphTraits< clang::CallGraphNode * >::child_begin(), and llvm::GraphTraits< const clang::CallGraphNode * >::child_begin().

◆ begin() [2/2]

const_iterator clang::CallGraphNode::begin ( ) const
inline

Definition at line 176 of file CallGraph.h.

◆ callees() [1/2]

llvm::iterator_range< iterator > clang::CallGraphNode::callees ( )
inline

Iterator access to callees/children of the node.

Definition at line 180 of file CallGraph.h.

References begin(), and end().

◆ callees() [2/2]

llvm::iterator_range< const_iterator > clang::CallGraphNode::callees ( ) const
inline

Definition at line 183 of file CallGraph.h.

References begin(), and end().

◆ dump()

LLVM_DUMP_METHOD void CallGraphNode::dump ( ) const

Definition at line 259 of file CallGraph.cpp.

References print().

◆ empty()

bool clang::CallGraphNode::empty ( ) const
inline

Definition at line 187 of file CallGraph.h.

◆ end() [1/2]

◆ end() [2/2]

const_iterator clang::CallGraphNode::end ( ) const
inline

Definition at line 177 of file CallGraph.h.

◆ getDecl()

Decl * clang::CallGraphNode::getDecl ( ) const
inline

◆ getDefinition()

FunctionDecl * clang::CallGraphNode::getDefinition ( ) const
inline

◆ print()

void CallGraphNode::print ( raw_ostream & os) const

Definition at line 253 of file CallGraph.cpp.

Referenced by dump().

◆ size()

unsigned clang::CallGraphNode::size ( ) const
inline

Definition at line 188 of file CallGraph.h.


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