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' |
| 16 | - 'vec_foreach' |
| 17 | - 'vec_foreach_backwards' |
| 18 | - 'vec_foreach_index' |
| 19 | - 'vec_foreach_index_backwards' |
| 20 | - 'vlib_foreach_rx_tx' |
Damjan Marion | 92ccf9b | 2021-03-26 11:38:01 +0100 | [diff] [blame] | 21 | - 'foreach_vlib_main' |
Damjan Marion | 7b90f66 | 2022-01-13 00:28:14 +0100 | [diff] [blame] | 22 | - 'foreach_set_bit_index' |
Damjan Marion | f8b61fb | 2023-03-16 16:34:30 +0000 | [diff] [blame] | 23 | - 'FOREACH_ARRAY_ELT' |
Damjan Marion | 7c11bd7 | 2022-01-05 14:51:50 +0100 | [diff] [blame] | 24 | - 'RTE_ETH_FOREACH_DEV' |
Damjan Marion | 942542f | 2020-12-12 19:09:31 +0100 | [diff] [blame] | 25 | |
Damjan Marion | 23c3488 | 2021-04-25 10:46:26 +0200 | [diff] [blame] | 26 | StatementMacros: |
| 27 | - 'CLIB_MULTIARCH_FN' |
| 28 | - 'VLIB_NODE_FN' |
| 29 | - 'VNET_DEVICE_CLASS_TX_FN' |
| 30 | - '__clib_section' |
| 31 | - '__clib_aligned' |
Damjan Marion | 5b12d26 | 2022-03-25 17:24:26 +0100 | [diff] [blame] | 32 | |
| 33 | WhitespaceSensitiveMacros: |
| 34 | - 'WARN_ON' |
| 35 | - 'WARN_OFF' |