blob: 050505b168ba39699851029d747068b2371f6ec0 [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 Marion92ccf9b2021-03-26 11:38:01 +010023 - 'foreach_vlib_main'
Damjan Marion7b90f662022-01-13 00:28:14 +010024 - 'foreach_set_bit_index'
Damjan Marion7e58d9b2023-05-26 19:01:29 +000025 - 'foreach_vlib_frame_bitmap_set_bit_index'
Damjan Marionf8b61fb2023-03-16 16:34:30 +000026 - 'FOREACH_ARRAY_ELT'
Damjan Marion7c11bd72022-01-05 14:51:50 +010027 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion942542f2020-12-12 19:09:31 +010028
Damjan Marion23c34882021-04-25 10:46:26 +020029StatementMacros:
30 - 'CLIB_MULTIARCH_FN'
31 - 'VLIB_NODE_FN'
32 - 'VNET_DEVICE_CLASS_TX_FN'
33 - '__clib_section'
34 - '__clib_aligned'
Damjan Marion5b12d262022-03-25 17:24:26 +010035
36WhitespaceSensitiveMacros:
37 - 'WARN_ON'
38 - 'WARN_OFF'