[swift-evolution] Swift source code formatting tool like clang-format for objective-c
Håkon Bogen
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. (
http://clang-developers.42468.n3.nabble.com/Will-clang-format-support-the-format-of-Swift-td4039910.html
)
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
http://haaakon.org
+47 95 09 68 11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151210/cd3136d5/attachment.html>
More information about the swift-evolution
mailing list