X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=.clang-format;h=a49d164f432259bf274735f58f711763fb79c3cb;hb=63305843e;hp=bce671f766c99c3aeb72fa2af8201cac12214639;hpb=92ccf9bcd2692b4b415f31044560c735d639a35c;p=vpp.git diff --git a/.clang-format b/.clang-format index bce671f766c..a49d164f432 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 @@ -19,4 +19,18 @@ ForEachMacros: - 'vec_foreach_index_backwards' - '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'