Closed littleGnAl closed 2 years ago
No, that is not possible, and I don't think it ever will be possible, unfortunately. libclang works on the input after it has been preprocessed. Getting macro definitions is already a hack on their end, and I need to do extra work to hide declarations from header files, etc.
Thanks for this awesome library!
I'm trying to generate a gmock file by using cppast, I have a class like below:
The generated file content should like:
Is possible to get the
#if (defined(TARGET_OS_IOS))
directives information through cppast? Any suggestion for this?