You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extend type system to support Objective-C types #420
We bundle clang with our product to produce types from c and c++ headers, but we do not support objective c type information. The current clang parser forces to be parsed as c++17 so we will need to relax that.
-x objective-c -target arm64-apple-darwin -framework Foundation -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -ILibrary/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
I think we could do with trying to do best effort parsing of the types (related issue for C++), even if our type model doesnt natively support whatever objective-c nonsense directly.
Currently we have a separate python script that parses out objective-c information (see darwin_typelib) for type libraries, im sure whatever conversions are occurring there would be useful as a reference.
Activity
emesare commentedon Feb 3, 2026
We bundle clang with our product to produce types from c and c++ headers, but we do not support objective c type information. The current clang parser forces to be parsed as c++17 so we will need to relax that.
Here is a snippet:
Clang Arguments:
I think we could do with trying to do best effort parsing of the types (related issue for C++), even if our type model doesnt natively support whatever objective-c nonsense directly.
Currently we have a separate python script that parses out objective-c information (see
darwin_typelib) for type libraries, im sure whatever conversions are occurring there would be useful as a reference.