-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
54 lines (53 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
54
#
# SPDX-License-Identifier: Apache-2.0
#
---
BasedOnStyle: LLVM
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AlignOperands: Align
AllowShortLoopsOnASingleLine: true
AlignTrailingComments: true
BinPackArguments: true
BinPackParameters: false
PointerAlignment: Right
BreakBeforeBraces: Linux
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|limits|locale|math|setjmp|signal|stdarg|stdbool|stddef|stdint|stdio|stdlib|string|tgmath|time|wchar|wctype)\.h>$'
Priority: 0
SortPriority: 0
- Regex: '^<Arduino\.h>$'
Priority: 1
SortPriority: 1
# In arduino samples <avrtos.h> must be the very first AVRTOS header to be included
# as it activates the avrtos library support, otherwise other <avrtos/...> headers
# will not be found.
- Regex: '^<avrtos\.h>$'
Priority: 2
SortPriority: 2
- Regex: '^<avrtos/.*\.h>$'
Priority: 2
SortPriority: 3
- Regex: '^<.*\.h>$'
Priority: 4
- Regex: '^".*\.h"$'
Priority: 5
- Regex: '.*'
Priority: 6
IndentWidth: 4
TabWidth: 4
IndentCaseLabels: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
UseTab: Always
ColumnLimit: 90
WhitespaceSensitiveMacros:
- STRINGIFY
- Z_STRINGIFY