mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 01:16:20 +00:00
Add clang-format file
People should run `make format` before doing a commit. Fix https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
33
.clang-format
Normal file
33
.clang-format
Normal file
@@ -0,0 +1,33 @@
|
||||
Language: Cpp
|
||||
BasedOnStyle: GNU
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceAfterLogicalNot: false
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeSquareBrackets: false
|
||||
SpaceInEmptyBlock: false
|
||||
SpaceInEmptyParentheses: false
|
||||
SpacesInCStyleCastParentheses: false
|
||||
SpacesInConditionalStatement: false
|
||||
SpacesInContainerLiterals: false
|
||||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
SpaceBeforeParens: ControlStatements
|
||||
ColumnLimit: 0
|
||||
PointerAlignment: Left
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignConsecutiveMacros: true
|
||||
AlignEscapedNewlines: Left
|
||||
AlignOperands: true
|
||||
AlignTrailingComments: true
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowShortBlocksOnASingleLine: true
|
||||
IndentWidth: 4
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterCaseLabel: true
|
||||
AfterControlStatement: Never
|
||||
AfterFunction: true
|
||||
BeforeElse: false
|
||||
#BeforeWhile: false
|
||||
AfterStruct: true
|
||||
#BreakStringLiterals: true
|
||||
Reference in New Issue
Block a user