The custom clang-format config file used in Flying Jalapeño iOS projects.
- Install the ClangFormat-Xcode Plugin
Download here or install via Alcatraz - Copy The .clang-format file in this repository to the root of your Project
- Set the plugin to use your custom file by selecting the "Edit" > "Clang Format" > "File" in the Xcode menu bar.
- Set the plugin to work on every file save by selecting the "Edit" > "Clang Format" > "Enable Format on Save" in the Xcode menu bar.
If you have use the steps above, the formatting will occur automatically on every file save. No other effort is needed.
For other configurations, refer to the documentation on the ClangFormat-Xcode's README for more information.
You can find more information about clang-format options on the clang llvm website
This file was originally copied from https://github.com/haaakon/Apple-clang-format before being modified for our projects.