Browse Source

Add for-each macros to clang-format.

Pierre Wendling 2 years ago
parent
commit
973424d9cb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .clang-format

+ 10 - 0
.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",
+  ]
+
 ---