-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove tokens stripping in metadata generator by migrating to Clang 3.7 #227
Comments
To build and configure the metadata generator to use the latest LLVM from the repo:
|
I mananaged to generate valid metadata with the latest Clang (all tests pass). However, there are some issues to be fixed. The newest Clang is better in recognising toll-free bridged types, but for some of them we can't find the bridged type. |
LLVM 3.7 was supposed to be out on August 21, but as of August 25 they are still at rc3. Unfortunately we won't be able to ship the newest Clang with the 1.3 release. |
Resolved: #332 |
We generate metadata for iOS 9 by stripping all Objective-C syntax from the header files which are not supported by Clang 3.6 (generics,
__kindof
, nullability modifiers). The stripping happens on the fly. It's a temporary(and ugly) solution. Clang 3.7 (it will be released at the end of August) is expected to support all these new Objective-C features and we have to migrate our metadata generator to use the new version of Clang. This will require some changes in our metadata generator. We will have to retrieve the generic information from the new APIs instead of stripping it on tokens level.Although Clang 3.7 is not already released we can try to build it from its repo (where the needed changes are already merged) and spike (or fully implement) our metadata generator changes.
The text was updated successfully, but these errors were encountered: