Is there a config file for Uncrustify that will format Objective-C per Google's Objective-C style guide?
Example config files for Uncrustify look a bit daunting and I'm hoping that I won't need to build one from scratch...
Is there a config file for Uncrustify that will format Objective-C per Google's Objective-C style guide?
Example config files for Uncrustify look a bit daunting and I'm hoping that I won't need to build one from scratch...
I wanted to incorporate uncrustify into my automated builds but faced problems. I found an alternative that I'm happy with. The AppCode objective-C IDE from Jetbrains works as a supplemental IDE to Xcode.
It includes an excellent and highly configurable code formatting tool, among other things.
. . . to my knowledge you can't invoke this tool from the cmd-line, however I've just filed a feature request to do so.
If you prefer Uncrustify there's a GUI Tool that might help.
That config file seems daunting only in length... (I've seen much worse!) I don't know if it conforms to the Google style guide, but mmorris
posted his .cfg in this answer: https://mcmap.net/q/377253/-how-to-set-xcode-plugin-for-code-auto-formatting-closed
You don't want to strictly conform to the Google style anyway... it only uses two character indentation! ;)
© 2022 - 2024 — McMap. All rights reserved.