IndexerCallbacks

A group of callbacks used by #clang_indexSourceFile and #clang_indexTranslationUnit.

Members

Variables

abortQuery
int function(CXClientData client_data, void* reserved) abortQuery;

Called periodically to check whether indexing should be aborted. Should return 0 to continue, and non-zero to abort.

diagnostic
void function(CXClientData client_data, CXDiagnosticSet, void* reserved) diagnostic;

Called at the end of indexing; passes the complete diagnostic set.

enteredMainFile
CXIdxClientFile function(CXClientData client_data, CXFile mainFile, void* reserved) enteredMainFile;
Undocumented in source.
importedASTFile
CXIdxClientASTFile function(CXClientData client_data, const(CXIdxImportedASTFileInfo)*) importedASTFile;

Called when a AST file (PCH or module) gets imported.

indexDeclaration
void function(CXClientData client_data, const(CXIdxDeclInfo)*) indexDeclaration;
Undocumented in source.
indexEntityReference
void function(CXClientData client_data, const(CXIdxEntityRefInfo)*) indexEntityReference;

Called to index a reference of an entity.

ppIncludedFile
CXIdxClientFile function(CXClientData client_data, const(CXIdxIncludedFileInfo)*) ppIncludedFile;

Called when a file gets \#included/\#imported.

startedTranslationUnit
CXIdxClientContainer function(CXClientData client_data, void* reserved) startedTranslationUnit;

Called at the beginning of indexing a translation unit.

Meta