X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=.clang-format;h=1471d0f469bb21ab621349da39b48f2498fda3cb;hb=f00cb43190a7338ca400d165899da87f35b08208;hp=2265e96857be6bedff194ff98c0d650b5c4e6d45;hpb=7b90f669d83f432f3610ec0da522bd8ccc4dff01;p=vpp.git diff --git a/.clang-format b/.clang-format index 2265e96857b..1471d0f469b 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 @@ -20,6 +20,7 @@ ForEachMacros: - 'vlib_foreach_rx_tx' - 'foreach_vlib_main' - 'foreach_set_bit_index' + - 'FOREACH_ARRAY_ELT' - 'RTE_ETH_FOREACH_DEV' StatementMacros: @@ -28,3 +29,7 @@ StatementMacros: - 'VNET_DEVICE_CLASS_TX_FN' - '__clib_section' - '__clib_aligned' + +WhitespaceSensitiveMacros: + - 'WARN_ON' + - 'WARN_OFF'