[swift-dev] Starter project: 'swift-format' tool: Move the swift indentation mechanism from SourceKit to libIDE and utilize it for a command-line tool

Jean-Pierre Simard jp at jpsim.com
Tue Dec 8 15:18:50 CST 2015

I was actually planning on doing this in the near future. It'll be
interesting to dig into SourceKit from the inside for once!
On Tue, Dec 8, 2015 at 13:17 Argyrios Kyrtzidis via swift-dev <
swift-dev at swift.org> wrote:

> Hi all,
> If someone is looking for a starter project in our tooling support area,
> here’s one you can dig your teeth into:
> SourceKit contains indentation logic that is not exposed in the libIDE
> library; this is not desirable, primarily because SourceKit is not
> cross-platform. Here are some steps to improve on this:
> • Move the indentation logic from SourceKit to libIDE. Have SourceKit just
> expose the functionality contained in libIDE.
> • Start a 'swift-format’ command-line tool that uses the indentation
> mechanism from libIDE; given a file and source range it auto-indents it.
> • See prior work for 'clang-format' (
> http://clang.llvm.org/docs/ClangFormat.html) for investigation on how to
> specify and provide formatting options.
> This is tracked via https://bugs.swift.org/browse/SR-146
> -Argyrios
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151208/3524cda0/attachment.html>

More information about the swift-dev mailing list