forked from zeoneo/rpi-3b-wifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
executable file
·38 lines (38 loc) · 1014 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
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
PointerAlignment: Left
ColumnLimit: 120
SpaceBeforeAssignmentOperators: true
SpaceAfterCStyleCast: true
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true
AllowShortFunctionsOnASingleLine: Empty
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 6
- Regex: '^(<|"(kernel)/)'
Priority: 3
SortPriority: 5
- Regex: '^(<|"(mem)/)'
Priority: 4
SortPriority: 4
- Regex: '^(<|"(device)/)'
Priority: 5
SortPriority: 3
- Regex: '^(<|"(plibc)/)'
Priority: 6
SortPriority: 2
- Regex: '<[[:alnum:].]+>'
Priority: 7
SortPriority: 1
- Regex: '.*'
Priority: 1
SortPriority: 0
---