blob: 03568413bf8d40ddfc7b7208898ceeea0308f9b0 [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'
Damjan Marion91ff0e92023-08-02 15:58:58 +000016 - 'pool_foreach_pointer'
Damjan Marion942542f2020-12-12 19:09:31 +010017 - 'vec_foreach'
18 - 'vec_foreach_backwards'
19 - 'vec_foreach_index'
20 - 'vec_foreach_index_backwards'
Damjan Marion99373592023-08-06 20:41:40 +020021 - 'vec_foreach_pointer'
Damjan Marion942542f2020-12-12 19:09:31 +010022 - 'vlib_foreach_rx_tx'
Damjan Marion08057942023-09-29 14:31:08 +020023 - 'foreach_int'
Damjan Marion92ccf9b2021-03-26 11:38:01 +010024 - 'foreach_vlib_main'
Damjan Marion7b90f662022-01-13 00:28:14 +010025 - 'foreach_set_bit_index'
Damjan Marion7e58d9b2023-05-26 19:01:29 +000026 - 'foreach_vlib_frame_bitmap_set_bit_index'
Damjan Marionf8b61fb2023-03-16 16:34:30 +000027 - 'FOREACH_ARRAY_ELT'
Damjan Marion7c11bd72022-01-05 14:51:50 +010028 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion942542f2020-12-12 19:09:31 +010029
Damjan Marion23c34882021-04-25 10:46:26 +020030StatementMacros:
31 - 'CLIB_MULTIARCH_FN'
32 - 'VLIB_NODE_FN'
33 - 'VNET_DEVICE_CLASS_TX_FN'
34 - '__clib_section'
35 - '__clib_aligned'
Damjan Marion5b12d262022-03-25 17:24:26 +010036
37WhitespaceSensitiveMacros:
38 - 'WARN_ON'
39 - 'WARN_OFF'