Damjan Marion | 5b12d26 | 2022-03-25 17:24:26 +0100 | [diff] [blame] | 1 | # Minimal clang-format version is 11 |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 2 | |
| 3 | BasedOnStyle: GNU |
| 4 | UseTab: Always |
| 5 | SpaceAfterCStyleCast: true |
Klement Sekera | dc15be2 | 2017-06-12 06:49:33 +0200 | [diff] [blame] | 6 | SortIncludes: false |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 7 | AlignConsecutiveMacros: true |
| 8 | BreakBeforeTernaryOperators: false |
| 9 | BreakBeforeBinaryOperators: None |
| 10 | ContinuationIndentWidth: 2 |
| 11 | |
| 12 | ForEachMacros: |
| 13 | - 'clib_bitmap_foreach' |
| 14 | - 'pool_foreach' |
| 15 | - 'pool_foreach_index' |
Damjan Marion | 91ff0e9 | 2023-08-02 15:58:58 +0000 | [diff] [blame] | 16 | - 'pool_foreach_pointer' |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 17 | - 'vec_foreach' |
| 18 | - 'vec_foreach_backwards' |
| 19 | - 'vec_foreach_index' |
| 20 | - 'vec_foreach_index_backwards' |
Damjan Marion | 9937359 | 2023-08-06 20:41:40 +0200 | [diff] [blame] | 21 | - 'vec_foreach_pointer' |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 22 | - 'vlib_foreach_rx_tx' |
Damjan Marion | 0805794 | 2023-09-29 14:31:08 +0200 | [diff] [blame] | 23 | - 'foreach_int' |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 24 | - 'foreach_pointer' |
Damjan Marion | 92ccf9b | 2021-03-26 11:38:01 +0100 | [diff] [blame] | 25 | - 'foreach_vlib_main' |
Damjan Marion | 7b90f66 | 2022-01-13 00:28:14 +0100 | [diff] [blame] | 26 | - 'foreach_set_bit_index' |
Damjan Marion | 7e58d9b | 2023-05-26 19:01:29 +0000 | [diff] [blame] | 27 | - 'foreach_vlib_frame_bitmap_set_bit_index' |
Damjan Marion | f8b61fb | 2023-03-16 16:34:30 +0000 | [diff] [blame] | 28 | - 'FOREACH_ARRAY_ELT' |
Damjan Marion | 7c11bd7 | 2022-01-05 14:51:50 +0100 | [diff] [blame] | 29 | - 'RTE_ETH_FOREACH_DEV' |
Damjan Marion | 7892560 | 2024-05-23 13:06:39 +0000 | [diff] [blame] | 30 | - 'foreach_clib_stack_frame' |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 31 | - '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 Marion | 69768d9 | 2023-11-13 17:33:32 +0000 | [diff] [blame] | 36 | - 'foreach_vnet_dev_args' |
| 37 | - 'foreach_vnet_dev_port_args' |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 38 | |
Damjan Marion | 23c3488 | 2021-04-25 10:46:26 +0200 | [diff] [blame] | 39 | StatementMacros: |
| 40 | - 'CLIB_MULTIARCH_FN' |
| 41 | - 'VLIB_NODE_FN' |
Damjan Marion | 38c6191 | 2023-10-17 16:06:26 +0000 | [diff] [blame] | 42 | - 'VNET_DEV_NODE_FN' |
Damjan Marion | 23c3488 | 2021-04-25 10:46:26 +0200 | [diff] [blame] | 43 | - 'VNET_DEVICE_CLASS_TX_FN' |
| 44 | - '__clib_section' |
| 45 | - '__clib_aligned' |
Damjan Marion | 5b12d26 | 2022-03-25 17:24:26 +0100 | [diff] [blame] | 46 | |
| 47 | WhitespaceSensitiveMacros: |
| 48 | - 'WARN_ON' |
| 49 | - 'WARN_OFF' |