vpp-swan: fix configuration of policies
[vpp.git] / .clang-format
index 97b653b..1471d0f 100644 (file)
@@ -1,4 +1,4 @@
-# Minimal clang-format version is 8
+# Minimal clang-format version is 11
 
 BasedOnStyle: GNU
 UseTab: Always
@@ -19,6 +19,8 @@ ForEachMacros:
   - 'vec_foreach_index_backwards'
   - 'vlib_foreach_rx_tx'
   - 'foreach_vlib_main'
+  - 'foreach_set_bit_index'
+  - 'FOREACH_ARRAY_ELT'
   - 'RTE_ETH_FOREACH_DEV'
 
 StatementMacros:
@@ -27,3 +29,7 @@ StatementMacros:
   - 'VNET_DEVICE_CLASS_TX_FN'
   - '__clib_section'
   - '__clib_aligned'
+
+WhitespaceSensitiveMacros:
+  - 'WARN_ON'
+  - 'WARN_OFF'