Google Summer of Code 2016
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 28 13:11:51 PST 2016
On 2016-01-28 18:19, Dicebot wrote:
> AFAIK this is blocked on having C++ API bindings because preprocessor
> isn't exposed to plain C ones (this is exactly why I have mentioned it
> in list).
I would first try the translation unit option
"CXTranslationUnit_DetailedPreprocessingRecord". The documentation says:
"Used to indicate that the parser should construct a "detailed"
preprocessing record, including all macro definitions and instantiations"
If that doesn't work I would prefer improving the C bindings to add
functionality for working with the preprocessor. But perhaps no one is
interested in doing that.
One huge advantage is that C API for libclang is a stable API.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list