-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
57 lines (54 loc) · 1.19 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
---
IndentWidth: 4
TabWidth: 4
Language: Cpp
Standard: Cpp11
BasedOnStyle: Google
# indent
AccessModifierOffset: -4
ContinuationIndentWidth: 8
# align
BreakBeforeTernaryOperators: true
BreakBeforeBinaryOperators: false
AlignAfterOpenBracket: false
ColumnLimit: 120
# constructor
BreakConstructorInitializersBeforeComma: false
ConstructorInitializerIndentWidth: 8
ConstructorInitializerAllOnOneLineOrOnePerLine: true
# short block
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
Cpp11BracedListStyle: true
# other
AlwaysBreakTemplateDeclarations: true
DerivePointerAlignment: false
PointerAlignment: Left
# clang-format 3.9+
SortIncludes: true
BreakStringLiterals: false
ReflowComments: true
# custom
IncludeCategories:
# Matches common headers first, but sorts them after project includes
- Regex: '^<.*.h>'
Priority: 1
- Regex: '^<.*.hpp>'
Priority: 2
- Regex: '^<[^/]*>'
Priority: 2
- Regex: '^"duet/.*'
Priority: 4
- Regex: '^"network/.*'
Priority: 4
- Regex: '^"solo/.*'
Priority: 4
- Regex: '^"setops/.*'
Priority: 4
- Regex: '^"verse/.*'
Priority: 5
- Regex: '^".*'
Priority: 3
...