clang API Documentation
Provides indexing information, like finding all references of an Entity across translation units. More...
#include <Analyzer.h>
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. | |
Provides indexing information, like finding all references of an Entity across translation units.
Definition at line 28 of file Analyzer.h.
| clang::idx::Analyzer::Analyzer | ( | Program & | prog, |
| IndexProvider & | idxer | ||
| ) | [inline, explicit] |
Definition at line 36 of file Analyzer.h.
| 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().