clang 20.0.0git
|
Index initialization options. More...
#include "clang-c/Index.h"
Public Attributes | |
unsigned | Size |
The size of struct CXIndexOptions used for option versioning. | |
unsigned char | ThreadBackgroundPriorityForIndexing |
A CXChoice enumerator that specifies the indexing priority policy. | |
unsigned char | ThreadBackgroundPriorityForEditing |
A CXChoice enumerator that specifies the editing priority policy. | |
unsigned | ExcludeDeclarationsFromPCH: 1 |
unsigned | DisplayDiagnostics: 1 |
unsigned | StorePreamblesInMemory: 1 |
Store PCH in memory. | |
unsigned | __pad0__: 13 |
const char * | PreambleStoragePath |
The path to a directory, in which to store temporary PCH files. | |
const char * | InvocationEmissionPath |
Specifies a path which will contain log files for certain libclang invocations. | |
Index initialization options.
0 is the default value of each member of this struct except for Size. Initialize the struct in one of the following three ways to avoid adapting code each time a new member is added to it:
or explicitly initialize the first data member and zero-initialize the rest:
or to prevent the -Wmissing-field-initializers warning for the above version:
unsigned CXIndexOptions::DisplayDiagnostics |
unsigned CXIndexOptions::ExcludeDeclarationsFromPCH |
const char* CXIndexOptions::InvocationEmissionPath |
const char* CXIndexOptions::PreambleStoragePath |
The path to a directory, in which to store temporary PCH files.
If null or empty, the default system temporary directory is used. These PCH files are deleted on clean exit but stay on disk if the program crashes or is killed.
This option is ignored if StorePreamblesInMemory is non-zero.
Libclang does not create the directory at the specified path in the file system. Therefore it must exist, or storing PCH files will fail.
unsigned CXIndexOptions::Size |
The size of struct CXIndexOptions used for option versioning.
Always initialize this member to sizeof(CXIndexOptions), or assign sizeof(CXIndexOptions) to it right after creating a CXIndexOptions object.
unsigned CXIndexOptions::StorePreamblesInMemory |
unsigned char CXIndexOptions::ThreadBackgroundPriorityForEditing |
A CXChoice enumerator that specifies the editing priority policy.
unsigned char CXIndexOptions::ThreadBackgroundPriorityForIndexing |
A CXChoice enumerator that specifies the indexing priority policy.