This PR adds two new functions createIndexWithOptions and parseTranslationUnitWithOptions that support all arguments of libclang's clang_createIndex and clang_parseTranslationUnit2. Now you can write something like this:
These additional options are useful to fine-tune Clang parser and process in-memory files.
I kept existing functions createIndex and parseTranslationUnit for backward compatibility but implemented them as shortcuts to createIndexWithOptions and parseTranslationUnitWithOptions.
Hi @chpatrick,
This PR adds two new functions
createIndexWithOptions
andparseTranslationUnitWithOptions
that support all arguments of libclang'sclang_createIndex
andclang_parseTranslationUnit2
. Now you can write something like this:These additional options are useful to fine-tune Clang parser and process in-memory files.
I kept existing functions
createIndex
andparseTranslationUnit
for backward compatibility but implemented them as shortcuts tocreateIndexWithOptions
andparseTranslationUnitWithOptions
.Thanks in advance!
This change is