[swift-users] Where to read about *.swiftmodule file format?

Volodymyr B sakristx at gmail.com
Wed Nov 29 05:01:53 CST 2017


Hi Slava,

Thank you for your respond. 

I want to read content of file and present relations between classes in visual diagram. 

Then I thought it also will be useful for other cases.


Best regards,
Volodymyr Boichentsov







> On 28 Nov 2017, at 21:07, Slava Pestov <spestov at apple.com> wrote:
> 
> Hi Volodymyr,
> 
> The format is not documented anywhere and is subject to change. A good starting point is include/swift/Serialization/ModuleFormat.h, but I would first be curious to know what exactly you’re planning on doing with it.
> 
> It might be better to extend swift-ide-test and similar utilities to dump the information you need in an easy to parse format, and exec() them from your IDE, instead of attempting to parse swift modules directly.
> 
> Slava
> 
>> On Nov 28, 2017, at 7:00 AM, Volodymyr B via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> wrote:
>> 
>> Hi
>> 
>> Where to read about *.swiftmodule file format?
>> 
>> And *.swiftdoc 
>> 
>> I want to understand container of it.
>> 
>> would be good to have parser for third party IDEs.
>> 
>> Best regards,
>> Volodymyr Boichentsov
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org <mailto:swift-users at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-users
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171129/7fd058c3/attachment.html>


More information about the swift-users mailing list