ClangWrapper.Swift icon indicating copy to clipboard operation
ClangWrapper.Swift copied to clipboard

`Type.spelling` reports wrong expression.

Open eonil opened this issue 10 years ago • 1 comments

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.

eonil avatar Jan 21 '15 12:01 eonil

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.

eonil avatar Jan 26 '15 09:01 eonil