X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=.clang-format;h=03568413bf8d40ddfc7b7208898ceeea0308f9b0;hb=9e5694b405e0200725a993f0c17d452fab508435;hp=2265e96857be6bedff194ff98c0d650b5c4e6d45;hpb=7b90f669d83f432f3610ec0da522bd8ccc4dff01;p=vpp.git diff --git a/.clang-format b/.clang-format index 2265e96857b..03568413bf8 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,13 +13,18 @@ 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_int' - 'foreach_vlib_main' - 'foreach_set_bit_index' + - 'foreach_vlib_frame_bitmap_set_bit_index' + - 'FOREACH_ARRAY_ELT' - 'RTE_ETH_FOREACH_DEV' StatementMacros: @@ -28,3 +33,7 @@ StatementMacros: - 'VNET_DEVICE_CLASS_TX_FN' - '__clib_section' - '__clib_aligned' + +WhitespaceSensitiveMacros: + - 'WARN_ON' + - 'WARN_OFF'