Counterparts display of Swift translation of C header is broken
Counterparts display of Swift translation of C header is broken
- Subject: Counterparts display of Swift translation of C header is broken
- From: Jens Alfke <email@hidden>
- Date: Mon, 11 Apr 2016 09:54:38 -0700
I’m writing a Swift API to an existing C library. The coding is going fine, but when I try to view the raw Swift equivalent of any of the library’s .h files (by switching the assistant editor to "Counterparts > foo.h (Interface)”), almost none of it shows up. It shows nothing but comments, then one struct declaration, and then it cuts off.
Fortunately the Swift compiler seems to understand the C API perfectly well, so my Swift code that calls it compiles fine. It’s just the display of the translated C header that fails. I assume this is a SourceKit failure?)
I’ll file a Radar including the preprocessed .h file, but in the interim, does anyone have any tips & tricks for how to work around this? Like, are there any specific C syntactic features that are known to screw up SourceKit’s translator?
—Jens
PS: Xcode 7.3 on OS X 10.11.4.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden