Skip to content

Commit

Permalink
Build System: clang-format: add K_SPINLOCK to FOR_EACH
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rodrigopex authored and fabiobaltieri committed Dec 26, 2023
1 parent b702c8e commit 2312897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2312897

Please sign in to comment.