-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
43 lines (40 loc) · 963 Bytes
/
.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
# General settings
BasedOnStyle: Google
Language: Cpp
BreakBeforeBraces: Allman
# Indenting
IndentWidth: 4
TabWidth: 4
IndentAccessModifiers: true
UseTab: Never
IndentCaseLabels: true
NamespaceIndentation: All
IndentPPDirectives: AfterHash
AllowShortFunctionsOnASingleLine: Empty
ColumnLimit: 120
BinPackArguments: false
BinPackParameters: false
SpacesInAngles: false
SpaceBeforeParens: Never
SpaceAfterCStyleCast: false
DerivePointerAlignment: false
PointerAlignment: Left
SpaceAfterTemplateKeyword: true
SortIncludes: false
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
# Alignment
AlignTrailingComments: true
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
AlignOperands: AlignAfterOperator