-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
42 lines (36 loc) · 935 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
39
40
41
42
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
TabWidth: 4
UseTab: Never
AlignOperands: AlignAfterOperator
AlignEscapedNewlines: Left
AlignTrailingComments: true
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
BreakBeforeBraces: Linux
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInParentheses: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '<kernel/arch/.*>'
Priority: 2
- Regex: '<kernel/.*>'
Priority: 1
- Regex: '<(uacpi|utils|lib.*)/.*>'
Priority: 3
- Regex: '<.*>'
Priority: 4
- Regex: '.*'
Priority: 5
ForEachMacros:
- FOREACH_LLIST
- FOREACH_CHILDREN
- FOREACH_MULTIBOOT_TAG