From 2312897055d19ce11ddfa496052e400afb8893f4 Mon Sep 17 00:00:00 2001 From: Rodrigo Peixoto Date: Sun, 24 Dec 2023 12:13:56 -0300 Subject: [PATCH] Build System: clang-format: add K_SPINLOCK to FOR_EACH The K_SPINLOCK is been indented wrongly by clang-format. It fixes that adding the K_SPINLOCK to the FOR_EACH section rule tells the formatter to follow the rule to indent the code. Signed-off-by: Rodrigo Peixoto --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index 603c00c59b..1501274714 100644 --- a/.clang-format +++ b/.clang-format @@ -67,6 +67,7 @@ ForEachMacros: - 'Z_GENLIST_FOR_EACH_NODE_SAFE' - 'STRUCT_SECTION_FOREACH' - 'TYPE_SECTION_FOREACH' + - 'K_SPINLOCK' IfMacros: - 'CHECKIF' # Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520