forked from AsahiLinux/m1n1
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
32 lines (31 loc) · 927 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
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: false
AlignConsecutiveMacros: true
IndentCaseLabels: true
ColumnLimit: 100
IncludeBlocks: Regroup
IncludeIsMainRegex: '(_.*)?$'
# Include block order goes like this
# - config.h style files, including ../config.h
# - system headers (<>)
# - All m1n1 headers, starting with the "this file" header, rest sorted
# - 3rd party code headers
# - build artifact headers (stuff outside of src/)
IncludeCategories:
- Regex: '^"(\.\./)*build/build_.*\.h"$'
Priority: -3
- Regex: '^"(\.\./)*config\.h"$'
Priority: -2
- Regex: '^<'
Priority: -1
- Regex: '^"\.\./'
Priority: 3
- Regex: '/'
Priority: 2
- Regex: '.*'
Priority: 0
SortPriority: 1