From 9c624fa9e6713fd5d9843a070d945a4a19cee065 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Thu, 25 May 2023 10:13:32 -0600 Subject: [PATCH] clang-format: flag *_SECTION_FOREACH as for loop Improve clang-format handling for iterable sections. Signed-off-by: Yuval Peress --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index d40d6c52362..603c00c59b1 100644 --- a/.clang-format +++ b/.clang-format @@ -65,6 +65,8 @@ ForEachMacros: - 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE' - 'Z_GENLIST_FOR_EACH_NODE' - 'Z_GENLIST_FOR_EACH_NODE_SAFE' + - 'STRUCT_SECTION_FOREACH' + - 'TYPE_SECTION_FOREACH' IfMacros: - 'CHECKIF' # Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520