2 ms·
My team recently switched from Uncrustify to Clang-format for our iOS development and this replaces a gap that I had: UncrustifyX. We had a lot of issues with
by drakenot 11y ago
My team recently switched from Uncrustify to Clang-format for our iOS development and this replaces a gap that I had: UncrustifyX.
We had a lot of issues with Uncrustify and I burned a lot of time trying to deal with its bugs. Clang-format can't do everything that Uncrustify can do, but I've had a lot less problems with it. The only thing I really miss is Uncrustify would do more than format white-space. It would make code alterations such as inserting missing block braces, etc.
My .clang-format config[0] is also much smaller and understandable as well.
[0] https://gist.github.com/mmcdole/e174ba6bede7760cee11 https://gist.github.com/mmcdole/e174ba6bede7760cee11
- coldcode 11y agoSigh, if only there was a formatter for Swift but the language keeps changing and no one at Apple finds time to work on this.
- bigcheesegs 11y agoThere's a hard rule for clang-format to only change white space so as not to accidentally make semantic changes. There is however another tool, clang-tidy, for that use case.