-
Notifications
You must be signed in to change notification settings - Fork 12
/
.clang-format
70 lines (57 loc) · 1.36 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
58
59
60
61
62
63
64
65
66
67
68
69
70
---
BasedOnStyle: Google
#
# Indent by four columns.
#
IndentWidth: 4
#
# Limit source width by 100 columns.
#
ColumnLimit: 100
#
# The brace breaking style:
# attach braces to surrounding context, but break before functions.
#
BreakBeforeBraces: WebKit
#
# For case labels, use the same indentation level as for the switch statement.
#
IndentCaseLabels: false
#
# Put spaces after { and before } in initializers.
#
Cpp11BracedListStyle: false
#
# For access modifiers (like public:),
# use the same indentation level as the class statement.
#
AccessModifierOffset: -4
#
# Align pointers to the right, like: int *a;
#
DerivePointerAlignment: false
PointerAlignment: Right
#
# Short functions, loops or ifs should be split into multiple lines.
#
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
#
# Break inheritance list and constructor initializers before colon.
#
BreakInheritanceList: BeforeColon
BreakConstructorInitializers: BeforeColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false
#
# Align trailing comments.
#
AlignTrailingComments: true
SpacesBeforeTrailingComments: 1
#
# Allow packing of multiple function definition’s parameters per line.
#
BinPackParameters: true
AllowAllParametersOfDeclarationOnNextLine: false
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true