clang-format: flag *_SECTION_FOREACH as for loop

Improve clang-format handling for iterable sections.

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2023-05-25 10:13:32 -06:00 committed by Maureen Helm
commit 9c624fa9e6

View file

@ -65,6 +65,8 @@ ForEachMacros:
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE' - 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
- 'Z_GENLIST_FOR_EACH_NODE' - 'Z_GENLIST_FOR_EACH_NODE'
- 'Z_GENLIST_FOR_EACH_NODE_SAFE' - 'Z_GENLIST_FOR_EACH_NODE_SAFE'
- 'STRUCT_SECTION_FOREACH'
- 'TYPE_SECTION_FOREACH'
IfMacros: IfMacros:
- 'CHECKIF' - 'CHECKIF'
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520 # Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520