ΒΆCXIndex clang_createIndex(
int excludeDeclarationsFromPCH,
int displayDiagnostics)
CXIndex clang_createIndex(
int excludeDeclarationsFromPCH,
int displayDiagnostics)
Description
Provides a shared context for creating translation units. It provides two options: - excludeDeclarationsFromPCH: When non-zero, allows enumeration of "local" declarations (when loading any new translation units). A "local" declaration is one that belongs in the translation unit itself and not in a precompiled header that was used by the translation unit. If zero, all declarations will be enumerated. Here is an example: This process of creating the 'pch', loading it separately, and using it (via -include-pch) allows 'excludeDeclsFromPCH' to remove redundant callbacks (which gives the indexer the same performance benefit as the compiler).
Declared at: clang/include/clang-c/Index.h:266
Parameters
- int excludeDeclarationsFromPCH
- int displayDiagnostics