Created
March 19, 2018 16:31
-
-
Save olehermanse/828838a3f8ec5df06d0acb75b0178ff0 to your computer and use it in GitHub Desktop.
My current clang-format config for C
This file contains 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: Google | |
--- | |
Language: Cpp | |
ColumnLimit: 78 | |
IndentWidth: 4 | |
TabWidth: 4 | |
UseTab: Never | |
MaxEmptyLinesToKeep: 3 | |
AlignTrailingComments: true | |
SpacesBeforeTrailingComments: 1 | |
DerivePointerAlignment: false | |
PointerAlignment: Right | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: false | |
SpaceBeforeAssignmentOperators: true | |
SpaceBeforeParens: ControlStatements | |
BreakStringLiterals: false | |
BinPackArguments: false | |
BinPackParameters: false | |
AlignAfterOpenBracket: AlwaysBreak | |
AllowAllParametersOfDeclarationOnNextLine: true | |
IndentCaseLabels: false | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortIfStatementsOnASingleLine: false | |
BreakBeforeBraces: Allman | |
BraceWrapping: | |
AfterControlStatement: true | |
AfterFunction: true | |
AfterStruct: true | |
AfterUnion: true | |
AfterEnum: true | |
BeforeElse: true | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment