clang 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
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 147 of file CallGraph.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 174 of file CallGraph.h.

◆ iterator

Definition at line 173 of file CallGraph.h.

Constructor & Destructor Documentation

◆ CallGraphNode()

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

Definition at line 171 of file CallGraph.h.

Member Function Documentation

◆ addCallee()

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

Definition at line 193 of file CallGraph.h.

References clang::Call.

Referenced by clang::CallGraph::getOrInsertNode().

◆ begin() [1/2]

iterator clang::CallGraphNode::begin ( )
inline

◆ begin() [2/2]

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

Definition at line 179 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 183 of file CallGraph.h.

References begin(), and end().

◆ callees() [2/2]

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

Definition at line 186 of file CallGraph.h.

References begin(), and end().

◆ dump()

LLVM_DUMP_METHOD void CallGraphNode::dump ( ) const

Definition at line 260 of file CallGraph.cpp.

References print().

◆ empty()

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

Definition at line 190 of file CallGraph.h.

◆ end() [1/2]

iterator clang::CallGraphNode::end ( )
inline

◆ end() [2/2]

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

Definition at line 180 of file CallGraph.h.

◆ getDecl()

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

Definition at line 195 of file CallGraph.h.

Referenced by getDefinition().

◆ getDefinition()

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

◆ print()

void CallGraphNode::print ( raw_ostream &  os) const

Definition at line 254 of file CallGraph.cpp.

Referenced by dump(), and clang::CallGraph::print().

◆ size()

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

Definition at line 191 of file CallGraph.h.


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