Skip to content

Commit 9c624fa

Browse files
yperessMaureenHelm
authored andcommitted
clang-format: flag *_SECTION_FOREACH as for loop
Improve clang-format handling for iterable sections. Signed-off-by: Yuval Peress <[email protected]>
1 parent 3c3132b commit 9c624fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.clang-format

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ ForEachMacros:
6565
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
6666
- 'Z_GENLIST_FOR_EACH_NODE'
6767
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
68+
- 'STRUCT_SECTION_FOREACH'
69+
- 'TYPE_SECTION_FOREACH'
6870
IfMacros:
6971
- 'CHECKIF'
7072
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520

0 commit comments

Comments
 (0)