-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
43 lines (42 loc) · 1.13 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
# Plan9-like
#AlignAfterOpenBracket: DontAlign
#AlignEscapedNewlines: Left
#AlignTrailingComments: false
#AllowShortBlocksOnASingleLine: false
#AllowShortCaseLabelsOnASingleLine: true
#AllowShortIfStatementsOnASingleLine: false
#AllowShortLoopsOnASingleLine: true
#AlwaysBreakAfterDefinitionReturnType: TopLevel
#BinPackArguments: false
#BinPackParameters: false
#BreakBeforeBraces: WebKit
#IndentCaseLabels: false
#TabWidth: 4
#IndentWidth: 4
#UseTab: ForContinuationAndIndentation
#ColumnLimit: 0
#ReflowComments: false
#SortIncludes: false
SpaceBeforeParens: Never
# My style
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: Left
AlignTrailingComments: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: TopLevel
BinPackArguments: true
BinPackParameters: false
BreakBeforeBraces: Attach
IndentCaseLabels: false
TabWidth: 2
IndentWidth: 2
ContinuationIndentWidth: 2
UseTab: Never
ColumnLimit: 80
ReflowComments: false
SortIncludes: false
SpaceBeforeParens: ControlStatements