<div dir="ltr">Thanks for the feedback! I&#39;ve actually started experimenting on building a Swift Formatter that uses the output from SourceKit gotten from SourceKitten to autoformat Swift code (<a href="https://github.com/jpsim/SourceKitten">https://github.com/jpsim/SourceKitten</a>). <div><br></div><div>My understanding is that SourceKit still will deliver the syntax data even if it&#39;s internally moved to libIDE. Not familiar with libIDE yet so if anyone knows if it will differ from what SourceKit outputs, just give me a heads up. </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-10 20:25 GMT+01:00 Johan Jensen <span dir="ltr">&lt;<a href="mailto:jj@johanjensen.dk" target="_blank">jj@johanjensen.dk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think it is planned, but someone has to build it:<br><a href="https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151207/000160.html" target="_blank">https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151207/000160.html</a><br><br></div>—Johan<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 8:13 PM, Håkon Bogen <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;m a huge fan of clang-format, (<a href="http://clang.llvm.org/docs/ClangFormat.html" target="_blank">http://clang.llvm.org/docs/ClangFormat.html</a>) a tool that can set rules for formatting source code in Objective-C projects. With tools like spacecommander (<a href="https://github.com/square/spacecommander" target="_blank">https://github.com/square/spacecommander</a>) and clang-format for XCode (<a href="https://github.com/travisjeffery/ClangFormat-Xcode" target="_blank">https://github.com/travisjeffery/ClangFormat-Xcode</a>), it can enforce the rules and auto run the formatter constantly so nicely formatted code stays that way. It saves alot of time, and keeps acleaner commit log without constant formatting adjustment. <div><br></div><div>Moving to Swift, it was a dearly missed feature. I actually asked about if Swift would be supported by clang-format on the clang-developers forum after it was announced in 2014, but got no replies. ( <a href="http://clang-developers.42468.n3.nabble.com/Will-clang-format-support-the-format-of-Swift-td4039910.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Will-clang-format-support-the-format-of-Swift-td4039910.html</a> ) <div><div><div><br></div><div>Would auto formatting tools for Swift be a good idea to include in the bundle of Swift Components, like clang-format is a part of clang/llvm? </div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div>Regards Håkon Bogen<br><a href="http://haaakon.org" target="_blank">http://haaakon.org</a><br>+47 95 09 68 11</div></div></div>
</font></span></font></span></div></div></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=KlmFWKNIEcyPEGx2Wqruu-2FaM6I0anrxIOlKS1pgqec4evxrKahD-2BxAM5eaXatEjdahrK7dgXyV1xZ1yJIveGCW9pwdjNjY1z2BxfW-2BQ03XjV5zXgjGej6j-2B5SB088dhUvq5-2FAGc1qagcT1z1hcZXIuSeGeMOLz7vDp8RYxrjc7RPYo0hrVEsT2s-2FLo9URCAQyEI1WH8OnhtUQpM1-2FJdPuWpVHB-2B8hA6kMiXL3ou-2BSEQ-3D" alt="" style="min-height:1px!important;width:1px!important;border-width:0px!important;margin:0px!important;padding:0px!important;display:none!important" height="1" border="0" width="1">
</font></span><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></font></span></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Hilsen Håkon Bogen<br><a href="http://haaakon.org" target="_blank">http://haaakon.org</a><br>+47 95 09 68 11</div></div></div>
</div>