-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
41 lines (41 loc) · 1.16 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
---
Language: Cpp
BasedOnStyle: Google
BreakAfterAttributes: Leave
CommentPragmas: '^ (IWYU pragma:|NOLINT(BEGIN|END|NEXTLINE)?(\(.+\))?:? )'
DerivePointerAlignment: false
InsertNewlineAtEOF: true
IncludeCategories:
- Regex: '^("|<)csrc_dipu/'
Priority: 90
CaseSensitive: false
- Regex: '^("|<)diopi/'
Priority: 80
CaseSensitive: false
- Regex: '^("|<)(c10|aten|torch)/'
Priority: 40
CaseSensitive: false
- Regex: '^("|<)Python\.h'
Priority: 50
CaseSensitive: false
- Regex: '^("|<)(frameobject|structmember|listobject)\.h'
Priority: 50
SortPriority: 51
CaseSensitive: false
- Regex: '^("|<)(pybind11)'
Priority: 50
SortPriority: 52
CaseSensitive: false
- Regex: '^<((ext/.*)|pthread)\.h'
Priority: 20
SortPriority: 21
CaseSensitive: false
- Regex: '^("|<)(cuda|su|cn|(..?ccl)|(.*_runtime)).*\.h'
Priority: 30
CaseSensitive: false
- Regex: '^<.*'
Priority: 20
CaseSensitive: false
- Regex: '.*'
Priority: 100
CaseSensitive: false