ClangWrapper.Swift
ClangWrapper.Swift copied to clipboard
`Type.spelling` reports wrong expression.
Currently, it is reporting Int instead of Invalid for missing types. I don't know how to determine whether the type is actually int or missing.
I still couldn't find a good way to determine whether the type is resolved or just implicitly assumed to int.
Anyway, you will get diagnostics if something goes wrong, so always consult any issues from the compiler library before proceed.
Also, proper compilation of C++ headers requires some more parameters. See "ClangASTExample" target for proper configurations.