-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
46 lines (39 loc) · 1.08 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
---
Language: Cpp
BasedOnStyle: LLVM
ColumnLimit: 100
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
DeriveLineEnding: false
KeepEmptyLinesAtTheStartOfBlocks: false
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
ReflowComments: true
AlwaysBreakTemplateDeclarations: Yes
AllowShortFunctionsOnASingleLine: Empty
BreakBeforeBraces: Mozilla
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: true
PointerAlignment: Left
IncludeBlocks: Regroup
IncludeCategories:
# Local includes always come first
- Regex: '^"'
Priority: 0
SortPriority: 0
# Standard includes come last
- Regex: '<[^/]+>'
Priority: 999
SortPriority: 999
# Includes from this library come after the locals
- Regex: '^<khepri/'
Priority: 1
SortPriority: 1
# Other includes (third party, etc) come in the middle
- Regex: '.*'
Priority: 2
SortPriority: 2