[swift-evolution] Swift source code formatting tool like clang-format for objective-c
hakon.bogen at gmail.com
Thu Dec 10 13:13:33 CST 2015
I'm a huge fan of clang-format, (http://clang.llvm.org/docs/ClangFormat.html)
a tool that can set rules for formatting source code in Objective-C
projects. With tools like spacecommander (
https://github.com/square/spacecommander) and clang-format for XCode (
https://github.com/travisjeffery/ClangFormat-Xcode), 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.
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. (
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?
Regards Håkon Bogen
+47 95 09 68 11
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution