-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
75 lines (53 loc) · 1.38 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
71
72
73
74
75
# TODO: add copyright header
---
BasedOnStyle: Google
# Keep comments at 1000.
ReflowComments: true
# Enforce max line length.
ColumnLimit: 100
# Indent
IndentWidth: 4
UseTab: false
---
Language: Cpp
# Don't indent private/public inside classes.
AccessModifierOffset: -4
# Align trailing comments on consecutive lines.
AlignTrailingComments: true
# Keep template on a separate line.
AlwaysBreakTemplateDeclarations: Yes
# Custom control how braces stay on the same line or go on the next.
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterStruct: false
AfterNamespace: false
AfterFunction: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
# How to break a constructor initializer list.
BreakConstructorInitializers: AfterColon
# No spaces for C++11 braced lists.
Cpp11BracedListStyle: true
# Comment out ends of namespaces.
FixNamespaceComments: true
# Split includes into blocks.
IncludeBlocks: Regroup
# Don't indent namespace content.
NamespaceIndentation: None
# Keep pointers next to the type.
PointerAlignment: Left
# Sort includes.
SortIncludes: true
# Sort 'using' blocks.
SortUsingDeclarations: true
# Keep 'switch' and 'case' aligned.
IndentCaseLabels: false
# Reduce empty lines.
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
# Always pack arguments together.
BinPackParameters: true
BinPackArguments: true
---