clang  6.0.0svn
Classes | Public Member Functions | List of all members
clang::index::IndexDataConsumer Class Reference

#include "clang/Index/IndexDataConsumer.h"

Classes

struct  ASTNodeInfo
 

Public Member Functions

virtual ~IndexDataConsumer ()
 
virtual void initialize (ASTContext &Ctx)
 
virtual bool handleDeclOccurence (const Decl *D, SymbolRoleSet Roles, ArrayRef< SymbolRelation > Relations, FileID FID, unsigned Offset, ASTNodeInfo ASTNode)
 
virtual bool handleMacroOccurence (const IdentifierInfo *Name, const MacroInfo *MI, SymbolRoleSet Roles, FileID FID, unsigned Offset)
 
virtual bool handleModuleOccurence (const ImportDecl *ImportD, SymbolRoleSet Roles, FileID FID, unsigned Offset)
 
virtual void finish ()
 

Detailed Description

Definition at line 26 of file IndexDataConsumer.h.

Constructor & Destructor Documentation

◆ ~IndexDataConsumer()

virtual clang::index::IndexDataConsumer::~IndexDataConsumer ( )
inlinevirtual

Definition at line 35 of file IndexDataConsumer.h.

Member Function Documentation

◆ finish()

virtual void clang::index::IndexDataConsumer::finish ( )
inlinevirtual

Definition at line 55 of file IndexDataConsumer.h.

◆ handleDeclOccurence()

bool IndexDataConsumer::handleDeclOccurence ( const Decl D,
SymbolRoleSet  Roles,
ArrayRef< SymbolRelation Relations,
FileID  FID,
unsigned  Offset,
ASTNodeInfo  ASTNode 
)
virtual
Returns
true to continue indexing, or false to abort.

Definition at line 23 of file IndexingAction.cpp.

Referenced by initialize(), and shouldReportOccurrenceForSystemDeclOnlyMode().

◆ handleMacroOccurence()

bool IndexDataConsumer::handleMacroOccurence ( const IdentifierInfo Name,
const MacroInfo MI,
SymbolRoleSet  Roles,
FileID  FID,
unsigned  Offset 
)
virtual
Returns
true to continue indexing, or false to abort.

Definition at line 30 of file IndexingAction.cpp.

Referenced by initialize().

◆ handleModuleOccurence()

bool IndexDataConsumer::handleModuleOccurence ( const ImportDecl ImportD,
SymbolRoleSet  Roles,
FileID  FID,
unsigned  Offset 
)
virtual
Returns
true to continue indexing, or false to abort.

Definition at line 36 of file IndexingAction.cpp.

Referenced by clang::index::IndexingContext::importedModule().

◆ initialize()

virtual void clang::index::IndexDataConsumer::initialize ( ASTContext Ctx)
inlinevirtual

Definition at line 37 of file IndexDataConsumer.h.

References handleDeclOccurence(), and handleMacroOccurence().


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