clang API Documentation

Public Member Functions
clang::idx::Analyzer Class Reference

Provides indexing information, like finding all references of an Entity across translation units. More...

#include <Analyzer.h>

List of all members.

Public Member Functions

 Analyzer (Program &prog, IndexProvider &idxer)
void FindDeclarations (Decl *D, TULocationHandler &Handler)
 Find all TULocations for declarations of the given Decl and pass them to Handler.
void FindReferences (Decl *D, TULocationHandler &Handler)
 Find all TULocations for references of the given Decl and pass them to Handler.
void FindObjCMethods (ObjCMessageExpr *MsgE, TULocationHandler &Handler)
 Find methods that may respond to the given message and pass them to Handler.

Detailed Description

Provides indexing information, like finding all references of an Entity across translation units.

Definition at line 28 of file Analyzer.h.


Constructor & Destructor Documentation

clang::idx::Analyzer::Analyzer ( Program prog,
IndexProvider idxer 
) [inline, explicit]

Definition at line 36 of file Analyzer.h.


Member Function Documentation

void Analyzer::FindDeclarations ( Decl D,
TULocationHandler Handler 
)

Find all TULocations for declarations of the given Decl and pass them to Handler.

Definition at line 435 of file Analyzer.cpp.

References clang::idx::Entity::get(), clang::idx::IndexProvider::GetTranslationUnitsFor(), and clang::idx::Entity::isInvalid().

void Analyzer::FindObjCMethods ( ObjCMessageExpr MsgE,
TULocationHandler Handler 
)

Find methods that may respond to the given message and pass them to Handler.

Definition at line 464 of file Analyzer.cpp.

References clang::idx::GlobalSelector::get(), clang::ObjCMessageExpr::getSelector(), and clang::idx::IndexProvider::GetTranslationUnitsFor().

void Analyzer::FindReferences ( Decl D,
TULocationHandler Handler 
)

Find all TULocations for references of the given Decl and pass them to Handler.

Definition at line 445 of file Analyzer.cpp.

References clang::idx::GlobalSelector::get(), clang::idx::Entity::get(), clang::ObjCMethodDecl::getSelector(), clang::idx::IndexProvider::GetTranslationUnitsFor(), and clang::idx::Entity::isInvalid().


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