-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
44 lines (40 loc) · 1.06 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
# Online References website is: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# The recommendation version of clang-format is up to 17.
---
Language: Cpp
BasedOnStyle: LLVM
AlignConsecutiveMacros: AcrossComments
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AttributeMacros:
- __aligned
- __packed
- __syscall
BitFieldColonSpacing: Both
BreakBeforeBraces: Linux
ColumnLimit: 140
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^".*\.h"$'
Priority: 0
- Regex: '^<(stdlib|string|stdbool|stdio|type|basic)\.h>$'
Priority: 1
- Regex: '^\<atos/.*\.h\>$'
Priority: 2
- Regex: '.*'
Priority: 3
IndentCaseLabels: true
IndentWidth: 4
InsertBraces: true
SpaceBeforeParens: ControlStatementsExceptControlMacros
SortIncludes: Never
UseTab: Never
WhitespaceSensitiveMacros:
- PRINTF
- BS_MAP