~widelands-dev/widelands/bug-1826744-lobby-commands

6842 by Holger Rapp
Added a clang-format configuration and relaxed style a bit so that clang-format is mostly correct.
1
---
2
Language:        Cpp
3
AccessModifierOffset: -3
4
ConstructorInitializerIndentWidth: 3
5
AlignEscapedNewlinesLeft: false
6
AlignTrailingComments: true
7
AllowAllParametersOfDeclarationOnNextLine: true
8
AllowShortIfStatementsOnASingleLine: false
9
AllowShortLoopsOnASingleLine: false
10
AllowShortFunctionsOnASingleLine: false
11
AlwaysBreakTemplateDeclarations: false
12
AlwaysBreakBeforeMultilineStrings: false
13
BreakBeforeBinaryOperators: false
14
BreakBeforeTernaryOperators: false
15
BreakConstructorInitializersBeforeComma: false
16
BinPackParameters: false
17
ColumnLimit:     100
8054.2.1 by GunChleoc
Prevent clang-format from formatting RST comments.
18
CommentPragmas: '^ RST.*'
6842 by Holger Rapp
Added a clang-format configuration and relaxed style a bit so that clang-format is mostly correct.
19
ConstructorInitializerAllOnOneLineOrOnePerLine: true
20
DerivePointerBinding: false
21
ExperimentalAutoDetectBinPacking: false
22
IndentCaseLabels: false
23
MaxEmptyLinesToKeep: 1
24
NamespaceIndentation: None
25
ObjCSpaceBeforeProtocolList: true
26
PenaltyBreakBeforeFirstCallParameter: 0
27
PenaltyBreakComment: 300
28
PenaltyBreakString: 1000
29
PenaltyBreakFirstLessLess: 120
30
PenaltyExcessCharacter: 1000000
31
PenaltyReturnTypeOnItsOwnLine: 60
32
PointerBindsToType: true
33
SpacesBeforeTrailingComments: 2
34
Cpp11BracedListStyle: true
35
Standard:        Cpp11
36
IndentWidth:     3
37
TabWidth:        3
38
UseTab:          ForIndentation
39
BreakBeforeBraces: Attach
40
IndentFunctionDeclarationAfterType: false
41
SpacesInParentheses: false
42
SpacesInAngles:  false
43
SpaceInEmptyParentheses: false
44
SpacesInCStyleCastParentheses: false
45
SpaceBeforeAssignmentOperators: true
46
ContinuationIndentWidth: 3
47
SpaceBeforeParens: ControlStatements
48
...
49