Automatic code formatting in the ios/osx workflow: format code in the comfort of your IDE! All you need is the BBUncrustify plugin for xXode
Whenever you save a source file, it can be formatted automatically using the Uncrustify formatter or Clang itself.
homepage of the plugin:
latest binary at the time of writing:
to install the binary:
1. Unzip it
2. then copy UncrustifyPlugin.xcplugin to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
3. Relaunch Xcode after the copy.