-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-format
65 lines (64 loc) · 1.7 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
55
56
57
58
59
60
61
62
63
64
65
---
BasedOnStyle: Google
BinPackParameters: false
BracedInitializerIndentWidth: 2
# Zephyr specific improvements
AttributeMacros:
- __aligned
- __deprecated
- __packed
- __printf_like
- __syscall
- __syscall_always_inline
- __subsystem
ForEachMacros:
- "FOR_EACH"
- "FOR_EACH_FIXED_ARG"
- "FOR_EACH_IDX"
- "FOR_EACH_IDX_FIXED_ARG"
- "FOR_EACH_NONEMPTY_TERM"
- "RB_FOR_EACH"
- "RB_FOR_EACH_CONTAINER"
- "SYS_DLIST_FOR_EACH_CONTAINER"
- "SYS_DLIST_FOR_EACH_CONTAINER_SAFE"
- "SYS_DLIST_FOR_EACH_NODE"
- "SYS_DLIST_FOR_EACH_NODE_SAFE"
- "SYS_SFLIST_FOR_EACH_CONTAINER"
- "SYS_SFLIST_FOR_EACH_CONTAINER_SAFE"
- "SYS_SFLIST_FOR_EACH_NODE"
- "SYS_SFLIST_FOR_EACH_NODE_SAFE"
- "SYS_SLIST_FOR_EACH_CONTAINER"
- "SYS_SLIST_FOR_EACH_CONTAINER_SAFE"
- "SYS_SLIST_FOR_EACH_NODE"
- "SYS_SLIST_FOR_EACH_NODE_SAFE"
- "_WAIT_Q_FOR_EACH"
- "Z_FOR_EACH"
- "Z_FOR_EACH_ENGINE"
- "Z_FOR_EACH_EXEC"
- "Z_FOR_EACH_FIXED_ARG"
- "Z_FOR_EACH_FIXED_ARG_EXEC"
- "Z_FOR_EACH_IDX"
- "Z_FOR_EACH_IDX_EXEC"
- "Z_FOR_EACH_IDX_FIXED_ARG"
- "Z_FOR_EACH_IDX_FIXED_ARG_EXEC"
- "Z_GENLIST_FOR_EACH_CONTAINER"
- "Z_GENLIST_FOR_EACH_CONTAINER_SAFE"
- "Z_GENLIST_FOR_EACH_NODE"
- "Z_GENLIST_FOR_EACH_NODE_SAFE"
- "STRUCT_SECTION_FOREACH"
- "TYPE_SECTION_FOREACH"
- "K_SPINLOCK"
IfMacros:
- "CHECKIF"
IncludeCategories:
- Regex: '^".*\.h"$'
Priority: 0
- 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: 1
- Regex: '^\<zephyr/.*\.h\>$'
Priority: 2
- Regex: ".*"
Priority: 3
WhitespaceSensitiveMacros:
- STRINGIFY
- Z_STRINGIFY