Generate Swift interface from Objective-C file using clang

Hi everyone,

In Xcode, I can generate a Swift interface for an Objective-C file by using
the assistant editor and selecting "Generated Interface" from the menu of
what to display. How would I go about generating this using the tools in
the Swift repo from GitHub? I've been digging around the code and have seen
ClangImporter but not sure if I'm looking for the right thing.

Thanks,
Ryan

The best way I know of is the swift-ide-test tool, and you’ll see it being invoked by many of the ClangImporter tests.

···

On Jul 6, 2016, at 10:45 AM, Ryan Wilson via swift-users <swift-users@swift.org> wrote:

Hi everyone,

In Xcode, I can generate a Swift interface for an Objective-C file by using the assistant editor and selecting "Generated Interface" from the menu of what to display. How would I go about generating this using the tools in the Swift repo from GitHub? I've been digging around the code and have seen ClangImporter but not sure if I'm looking for the right thing.

Thanks,
Ryan
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Thank you! I'll take a look.

···

On Wed, 6 Jul 2016 at 17:33 Michael Ilseman <milseman@apple.com> wrote:

The best way I know of is the swift-ide-test tool, and you’ll see it being
invoked by many of the ClangImporter tests.

> On Jul 6, 2016, at 10:45 AM, Ryan Wilson via swift-users < > swift-users@swift.org> wrote:
>
> Hi everyone,
>
> In Xcode, I can generate a Swift interface for an Objective-C file by
using the assistant editor and selecting "Generated Interface" from the
menu of what to display. How would I go about generating this using the
tools in the Swift repo from GitHub? I've been digging around the code and
have seen ClangImporter but not sure if I'm looking for the right thing.
>
> Thanks,
> Ryan
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users