-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
57 lines (50 loc) · 1.32 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# main
IndentWidth: 4
BreakBeforeBraces: Linux
AlwaysBreakAfterDefinitionReturnType: true
UseTab: Never
AllowShortIfStatementsOnASingleLine: false
ColumnLimit: 80
IndentCaseLabels: false
# for macros
AlignEscapedNewlinesLeft: false
IndentPPDirectives: AfterHash
# i love alignment
BinPackArguments: false
AllowAllParametersOfDeclarationOnNextLine: true
BinPackParameters: false
AlignTrailingComments: true
AlignConsecutiveDeclarations: true
AlignAfterOpenBracket: Align
# most flow control must be indented for easy eye scanning
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortLoopsOnASingleLine: true
# braces
BraceWrapping:
BeforeElse: false
AfterControlStatement: false
AfterFunction: false
AfterStruct: false
AfterUnion: false
IndentBraces: false
# other
AlignOperands: true
MaxEmptyLinesToKeep: 3
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Left
DerivePointerAlignment: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
IncludeBlocks: Preserve
SortIncludes: false
BreakBeforeBinaryOperators: None
ReflowComments: true
# penalties
PenaltyExcessCharacter: 2