clang_indexSourceFile

Index the given source file and the translation unit corresponding to that file via callbacks implemented through #IndexerCallbacks.

\param client_data pointer data supplied by the client, which will be passed to the invoked callbacks.

\param index_callbacks Pointer to indexing callbacks that the client implements.

\param index_callbacks_size Size of #IndexerCallbacks structure that gets passed in index_callbacks.

\param index_options A bitmask of options that affects how indexing is performed. This should be a bitwise OR of the CXIndexOpt_XXX flags.

\paramout out_TU pointer to store a \c CXTranslationUnit that can be reused after indexing is finished. Set to \c NULL if you do not require it.

\returns 0 on success or if there were errors from which the compiler could recover. If there is a failure from which there is no recovery, returns a non-zero \c CXErrorCode.

The rest of the parameters are the same as #clang_parseTranslationUnit.

Meta