-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
47 lines (47 loc) · 1023 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
43
44
45
46
47
---
BasedOnStyle: LLVM
ColumnLimit: 120
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
---
Language: Cpp
AccessModifierOffset: -4
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Linux
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
# Project
- Regex: '^"(static|sys|test)/'
Priority: 2
- Regex: '^"'
Priority: -1
# Espressif
- Regex: '^<sdkconfig\.h>'
Priority: 10
- Regex: '^<freertos/'
Priority: 12
- Regex: '^<(bits|sys)/'
Priority: 13
- Regex: '^<[^.]+\.'
Priority: 11
# C++ Standard Library
- Regex: '^<[[:lower:]_]+>'
Priority: 20
# Unknown
- Regex: '^<'
Priority: 18
- Regex: '.*'
Priority: 19
InsertBraces: true
ShortNamespaceLines: 0
SortIncludes: CaseSensitive
...