blob: 798a8c39a3591ca9627d2018e1cf65b24a26ea88 [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 Marion38c61912023-10-17 16:06:26 +000024 - 'foreach_pointer'
Damjan Marion92ccf9b2021-03-26 11:38:01 +010025 - 'foreach_vlib_main'
Damjan Marion7b90f662022-01-13 00:28:14 +010026 - 'foreach_set_bit_index'
Damjan Marion7e58d9b2023-05-26 19:01:29 +000027 - 'foreach_vlib_frame_bitmap_set_bit_index'
Damjan Marionf8b61fb2023-03-16 16:34:30 +000028 - 'FOREACH_ARRAY_ELT'
Damjan Marion7c11bd72022-01-05 14:51:50 +010029 - 'RTE_ETH_FOREACH_DEV'
Damjan Marion78925602024-05-23 13:06:39 +000030 - 'foreach_clib_stack_frame'
Damjan Marion38c61912023-10-17 16:06:26 +000031 - 'foreach_vnet_dev_rx_queue_runtime'
32 - 'foreach_vnet_dev_counter'
33 - 'foreach_vnet_dev_port_rx_queue'
34 - 'foreach_vnet_dev_port_tx_queue'
35 - 'foreach_vnet_dev_port'
Damjan Marion69768d92023-11-13 17:33:32 +000036 - 'foreach_vnet_dev_args'
37 - 'foreach_vnet_dev_port_args'
Damjan Marion942542f2020-12-12 19:09:31 +010038
Damjan Marion23c34882021-04-25 10:46:26 +020039StatementMacros:
40 - 'CLIB_MULTIARCH_FN'
41 - 'VLIB_NODE_FN'
Damjan Marion38c61912023-10-17 16:06:26 +000042 - 'VNET_DEV_NODE_FN'
Damjan Marion23c34882021-04-25 10:46:26 +020043 - 'VNET_DEVICE_CLASS_TX_FN'
44 - '__clib_section'
45 - '__clib_aligned'
Damjan Marion5b12d262022-03-25 17:24:26 +010046
47WhitespaceSensitiveMacros:
48 - 'WARN_ON'
49 - 'WARN_OFF'