blob: 8326a07251b0e96fcafacfe539a8852bd1512780 [file] [log] [blame]
Damjan Marion5b12d262022-03-25 17:24:26 +01001# Minimal clang-format version is 11
Damjan Marion942542f2020-12-12 19:09:31 +01002
3BasedOnStyle: GNU
4UseTab: Always
5SpaceAfterCStyleCast: true
Klement Sekeradc15be22017-06-12 06:49:33 +02006SortIncludes: false
Damjan Marion942542f2020-12-12 19:09:31 +01007AlignConsecutiveMacros: true
8BreakBeforeTernaryOperators: false
9BreakBeforeBinaryOperators: None
10ContinuationIndentWidth: 2
11
12ForEachMacros:
13 - 'clib_bitmap_foreach'
14 - 'pool_foreach'
15 - 'pool_foreach_index'
16 - 'vec_foreach'
17 - 'vec_foreach_backwards'
18 - 'vec_foreach_index'
19 - 'vec_foreach_index_backwards'
20 - 'vlib_foreach_rx_tx'
Damjan Marion92ccf9b2021-03-26 11:38:01 +010021 - 'foreach_vlib_main'
Damjan Marion7b90f662022-01-13 00:28:14 +010022 - 'foreach_set_bit_index'
Damjan Marion7c11bd72022-01-05 14:51:50 +010023 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion942542f2020-12-12 19:09:31 +010024
Damjan Marion23c34882021-04-25 10:46:26 +020025StatementMacros:
26 - 'CLIB_MULTIARCH_FN'
27 - 'VLIB_NODE_FN'
28 - 'VNET_DEVICE_CLASS_TX_FN'
29 - '__clib_section'
30 - '__clib_aligned'
Damjan Marion5b12d262022-03-25 17:24:26 +010031
32WhitespaceSensitiveMacros:
33 - 'WARN_ON'
34 - 'WARN_OFF'