<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 10, 2015, at 11:13 AM, HÃ¥kon Bogen via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I'm a huge fan of clang-format, (<a href="http://clang.llvm.org/docs/ClangFormat.html" class="">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" class="">https://github.com/square/spacecommander</a>) and clang-format for XCode (<a href="https://github.com/travisjeffery/ClangFormat-Xcode" class="">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 class=""><br class=""></div><div class="">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" class="">http://clang-developers.42468.n3.nabble.com/Will-clang-format-support-the-format-of-Swift-td4039910.html</a> ) <div class=""><div class=""><div class=""><br class=""></div><div class="">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></div></div></div></div></div></blockquote></div><div class=""><br class=""></div>This would be a fantastic thing to have, but of course someone has to build it ;)<br class=""><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>- Doug</div><div class=""><br class=""></div></body></html>