Skip to content

Commit 1ec9d2a

Browse files
pabigotnashif
authored andcommitted
clang-format: Update with latest FOR_EACH macro list
Correct the shell fragment to use the spelling Zephyr uses, and re-run it to update the list. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
1 parent afe8a37 commit 1ec9d2a

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.clang-format

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,12 @@ ExperimentalAutoDetectBinPacking: false
6565
#FixNamespaceComments: false # Unknown to clang-format-4.0
6666

6767
# Taken from:
68-
# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \
69-
# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
68+
# git grep -h '^#define [^[:space:]]*FOR_EACH[^[:space:]]*(' include/ \
69+
# | sed "s,^#define \([^[:space:]]*FOR_EACH[^[:space:]]*\)(.*$, - '\1'," \
7070
# | sort | uniq
7171
ForEachMacros:
7272
- 'FOR_EACH'
73-
- 'for_each_linux_bus'
74-
- 'for_each_linux_driver'
75-
- 'metal_bitmap_for_each_clear_bit'
76-
- 'metal_bitmap_for_each_set_bit'
77-
- 'metal_for_each_page_size_down'
78-
- 'metal_for_each_page_size_up'
79-
- 'metal_list_for_each'
73+
- 'FOR_EACH_FIXED_ARG'
8074
- 'RB_FOR_EACH'
8175
- 'RB_FOR_EACH_CONTAINER'
8276
- 'SYS_DLIST_FOR_EACH_CONTAINER'
@@ -91,11 +85,11 @@ ForEachMacros:
9185
- 'SYS_SLIST_FOR_EACH_CONTAINER_SAFE'
9286
- 'SYS_SLIST_FOR_EACH_NODE'
9387
- 'SYS_SLIST_FOR_EACH_NODE_SAFE'
94-
- '_WAIT_Q_FOR_EACH'
9588
- 'Z_GENLIST_FOR_EACH_CONTAINER'
9689
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
9790
- 'Z_GENLIST_FOR_EACH_NODE'
9891
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
92+
- '_WAIT_Q_FOR_EACH'
9993

10094
#IncludeBlocks: Preserve # Unknown to clang-format-5.0
10195
IncludeCategories:

0 commit comments

Comments
 (0)