-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
47 lines (32 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
44
45
46
47
# This is the version of the clang-format style to use.
BasedOnStyle: Google
# Indent width for line continuations and comments.
IndentWidth: 4
# Indent case labels one level from the switch statement.
IndentCaseLabels: true
# Pointer and reference alignment style.
PointerAlignment: Left
# Indent width for line continuations.
ContinuationIndentWidth: 4
# Align escaped newlines as far left as possible.
AlignEscapedNewlines: Left
# Indent width for constructor initializer lists.
ConstructorInitializerIndentWidth: 4
# Indent width for lambdas.
LambdaBodyIndentation: OuterScope
# Align trailing comments.
AlignTrailingComments: true
# Align consecutive assignments.
AlignConsecutiveAssignments: true
# Align consecutive declarations.
AlignConsecutiveDeclarations: true
# Align consecutive bitfield members.
AlignConsecutiveBitFields: true
# Column limit for restructuring comments.
ReflowComments: true
# Sort includes in a specific order.
SortIncludes: CaseSensitive
# Specify the maximum number of consecutive empty lines.
MaxEmptyLinesToKeep: 2
# Indent access modifiers to align with class/struct members.
AccessModifierOffset: -4