blob: 97b653b35c2f01356240fbda52768d51476c28f8 [file] [log] [blame]
Damjan Marion942542f2020-12-12 19:09:31 +01001# Minimal clang-format version is 8
2
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 Marion7c11bd72022-01-05 14:51:50 +010022 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion942542f2020-12-12 19:09:31 +010023
Damjan Marion23c34882021-04-25 10:46:26 +020024StatementMacros:
25 - 'CLIB_MULTIARCH_FN'
26 - 'VLIB_NODE_FN'
27 - 'VNET_DEVICE_CLASS_TX_FN'
28 - '__clib_section'
29 - '__clib_aligned'