Skip to content

Commit 1fe1c96

Browse files
mt-gjoergesdleach02
authored andcommitted
clang-format: add FOREACH macros
add missing FOREACH macros to stop clang-format from moving the opening curly brace into a new line. Signed-off-by: Gerhard Jörges <[email protected]>
1 parent 7704d4e commit 1fe1c96

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.clang-format

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ForEachMacros:
3939
- 'FOR_EACH_IDX'
4040
- 'FOR_EACH_IDX_FIXED_ARG'
4141
- 'FOR_EACH_NONEMPTY_TERM'
42+
- 'FOR_EACH_FIXED_ARG_NONEMPTY_TERM'
4243
- 'RB_FOR_EACH'
4344
- 'RB_FOR_EACH_CONTAINER'
4445
- 'SYS_DLIST_FOR_EACH_CONTAINER'
@@ -68,8 +69,16 @@ ForEachMacros:
6869
- 'Z_GENLIST_FOR_EACH_NODE'
6970
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
7071
- 'STRUCT_SECTION_FOREACH'
72+
- 'STRUCT_SECTION_FOREACH_ALTERNATE'
7173
- 'TYPE_SECTION_FOREACH'
7274
- 'K_SPINLOCK'
75+
- 'COAP_RESOURCE_FOREACH'
76+
- 'COAP_SERVICE_FOREACH'
77+
- 'COAP_SERVICE_FOREACH_RESOURCE'
78+
- 'HTTP_RESOURCE_FOREACH'
79+
- 'HTTP_SERVER_CONTENT_TYPE_FOREACH'
80+
- 'HTTP_SERVICE_FOREACH'
81+
- 'HTTP_SERVICE_FOREACH_RESOURCE'
7382
IfMacros:
7483
- 'CHECKIF'
7584
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520

0 commit comments

Comments
 (0)