X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=.clang-format;h=050505b168ba39699851029d747068b2371f6ec0;hb=4cae8f9bee5f295f88090cd9a035f18b4899aa1d;hp=8b5c955cedef1ca58bcd51dd205cc670607f9126;hpb=942542f7c1c3aae62a88612b8702a45f0d3b0e35;p=vpp.git diff --git a/.clang-format b/.clang-format index 8b5c955cede..050505b168b 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,4 @@ -# Minimal clang-format version is 8 +# Minimal clang-format version is 11 BasedOnStyle: GNU UseTab: Always @@ -13,9 +13,26 @@ ForEachMacros: - 'clib_bitmap_foreach' - 'pool_foreach' - 'pool_foreach_index' + - 'pool_foreach_pointer' - 'vec_foreach' - 'vec_foreach_backwards' - 'vec_foreach_index' - 'vec_foreach_index_backwards' + - 'vec_foreach_pointer' - 'vlib_foreach_rx_tx' + - 'foreach_vlib_main' + - 'foreach_set_bit_index' + - 'foreach_vlib_frame_bitmap_set_bit_index' + - 'FOREACH_ARRAY_ELT' + - 'RTE_ETH_FOREACH_DEV' +StatementMacros: + - 'CLIB_MULTIARCH_FN' + - 'VLIB_NODE_FN' + - 'VNET_DEVICE_CLASS_TX_FN' + - '__clib_section' + - '__clib_aligned' + +WhitespaceSensitiveMacros: + - 'WARN_ON' + - 'WARN_OFF'