Commit 973424d9cb5d6723dff5e6c2fb36034657485895

Pierre Wendling 2022-05-06T12:08:44

Add for-each macros to clang-format.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/.clang-format b/.clang-format
index b3ed5c9..01d4945 100644
--- a/.clang-format
+++ b/.clang-format
@@ -72,5 +72,15 @@ SpaceInEmptyParentheses: false
 
 UseCRLF: false
 UseTab: Never
+
+ForEachMacros:
+  [
+    "spa_list_for_each",
+    "spa_list_for_each_safe",
+    "wl_list_for_each",
+    "wl_array_for_each",
+    "udev_list_entry_foreach",
+  ]
+
 ---