Last active
August 29, 2015 14:02
-
-
Save langford/0e26ed9d46246b9546fb to your computer and use it in GitHub Desktop.
My .clang-format that comes pretty close to Apple style using Tony Arnold's build of clang-format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Chromium | |
AlignTrailingComments: true | |
BreakBeforeBraces: Stroustrup | |
ColumnLimit: 0 | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
AllowShortIfStatementsOnASingleLine: true | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
PointerBindsToType: false | |
SpacesBeforeTrailingComments: 1 | |
TabWidth: 8 | |
UseTab: Never | |
PointerBindsToType: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://tonyarnold.com/2014/05/31/autoformatting-your-code.html
Direct link to the clang-format version it is designed to work with http://static.tonyarnold.com/clang-format-20140601.zip