-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
38 lines (31 loc) · 697 Bytes
/
.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
BasedOnStyle: Google
ColumnLimit: 120
IndentWidth: 4
AccessModifierOffset: -2
NamespaceIndentation: Inner
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortEnumsOnASingleLine: false
DerivePointerAlignment: false
PointerAlignment: Left
IncludeCategories:
# Core headers
- Regex: '<core\/.*'
Priority: 50
# Infra headers
- Regex: '<infra\/.*'
Priority: 55
# Main headers
- Regex: '<node\/.*'
Priority: 60
# Self headers
- Regex: '".*"'
Priority: 10
# C standard library
- Regex: '<[[:alnum:]]+\.h>'
Priority: 20
# C++ standard library
- Regex: '<[[:alnum:]_]+>'
Priority: 30
# Third-party libraries
- Regex: '<.*'
Priority: 40