-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
42 lines (37 loc) · 1.39 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
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# clang-format version 6.0.0 (tags/RELEASE_600/final)
# AlignConsecutiveAssignments: true
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Linux
ColumnLimit: 80
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerAlignment: false
IncludeBlocks: Regroup
IndentPPDirectives: AfterHash
IndentWidth: 4
PointerAlignment: Right
SortIncludes: true
SpacesBeforeTrailingComments: 2
# TODO: require one blank line between blocks
# FIXME: auto generate this section
IncludeCategories:
# standard C headers
# TODO: add as needed
- Regex: ^<(climits|cmath|cstdint|cstdio|cstdlib|cstring)>$
Priority: 1
# standard C++ headers
# TODO: add as needed
- Regex: ^<(algorithm|array|chrono|condition_variable|experimental/iterator|filesystem|fstream|functional|iomanip|iostream|map|memory|mutex|numeric|random|sstream|stdexcept|string|thread|tuple|type_traits|vector)>$
Priority: 2
# user added experimental STL headers
- Regex: ^<experimental/(contract|ith|new_type)>
Priority: 2
# ttl headers
- Regex: ^<(ttl/(algorithm|debug|device|nn|range|shape|tensor|bits))
Priority: 3
# internal headers
- Regex: ^"
Priority: 4