blob: 1471d0f469bb21ab621349da39b48f2498fda3cb [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 Marionf8b61fb2023-03-16 16:34:30 +000023 - 'FOREACH_ARRAY_ELT'
Damjan Marion7c11bd72022-01-05 14:51:50 +010024 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion942542f2020-12-12 19:09:31 +010025
Damjan Marion23c34882021-04-25 10:46:26 +020026StatementMacros:
27 - 'CLIB_MULTIARCH_FN'
28 - 'VLIB_NODE_FN'
29 - 'VNET_DEVICE_CLASS_TX_FN'
30 - '__clib_section'
31 - '__clib_aligned'
Damjan Marion5b12d262022-03-25 17:24:26 +010032
33WhitespaceSensitiveMacros:
34 - 'WARN_ON'
35 - 'WARN_OFF'