Skip to content

Commit

Permalink
clang-format: flag *_SECTION_FOREACH as for loop
Browse files Browse the repository at this point in the history
Improve clang-format handling for iterable sections.

Signed-off-by: Yuval Peress <[email protected]>
  • Loading branch information
yperess authored and MaureenHelm committed May 26, 2023
1 parent 3c3132b commit 9c624fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c624fa

Please sign in to comment.