-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
45 lines (41 loc) · 1.09 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
# We'll use defaults from the Google style, but with 4 columns indentation.
BasedOnStyle: Google
Language: Cpp
UseTab: Never
IndentWidth: 4
# public, private, protect
AccessModifierOffset: -4
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Right
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveMacros: Consecutive
AlwaysBreakBeforeMultilineStrings: false
AllowShortFunctionsOnASingleLine: InlineOnly
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakBeforeBinaryOperators: All
ColumnLimit: 0
PackConstructorInitializers: BinPack
SpacesBeforeTrailingComments: 1
SpaceBeforeCpp11BracedList: true
SortUsingDeclarations: false
SortIncludes: CaseSensitive
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(common)/'
Priority: 0
- Regex: '^"(filesystem)/'
Priority: 1
- Regex: '^"(network)/'
Priority: 2
- Regex: '^"(protocol)/'
Priority: 3
- Regex: '^"(engine)/'
Priority: 4
- Regex: '^"(client)/'
Priority: 5
- Regex: '^"(replicator)/'
Priority: 6
- Regex: '^"(server)/'
Priority: 7