-
Notifications
You must be signed in to change notification settings - Fork 66
/
.clang-format
40 lines (33 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
BasedOnStyle: Google
ColumnLimit: 0
IndentWidth: 4
AccessModifierOffset: -2
NamespaceIndentation: Inner
AllowShortEnumsOnASingleLine: false
DerivePointerAlignment: false
PointerAlignment: Left
IncludeCategories:
# coroutine.hpp has to go before the boost headers,
# otherwise boost::asio fails to compile on GCC 12
- Regex: '<silkworm/infra/concurrency/coroutine\.hpp>'
Priority: 30
# coroutine.hpp has to go before the boost headers,
# otherwise boost::asio fails to compile on GCC 12
- Regex: '<silkworm/infra/concurrency/task\.hpp>'
Priority: 30
# coroutine.hpp has to go before the boost headers,
# otherwise boost::asio fails to compile on GCC 12
- Regex: '"task\.hpp"'
Priority: 30
# Silkworm headers
- Regex: '<silkworm.*'
Priority: 50
# C standard library
- Regex: '<[[:alnum:]]+\.h>'
Priority: 10
# C++ standard library
- Regex: '<[[:alnum:]_]+>'
Priority: 20
# Third-party libraries
- Regex: '<.*'
Priority: 40