2022-03-25 17:24:26 +01:00
|
|
|
# Minimal clang-format version is 11
|
2020-12-12 19:09:31 +01:00
|
|
|
|
|
|
|
BasedOnStyle: GNU
|
|
|
|
UseTab: Always
|
|
|
|
SpaceAfterCStyleCast: true
|
2017-06-12 06:49:33 +02:00
|
|
|
SortIncludes: false
|
2020-12-12 19:09:31 +01:00
|
|
|
AlignConsecutiveMacros: true
|
|
|
|
BreakBeforeTernaryOperators: false
|
|
|
|
BreakBeforeBinaryOperators: None
|
|
|
|
ContinuationIndentWidth: 2
|
|
|
|
|
|
|
|
ForEachMacros:
|
|
|
|
- 'clib_bitmap_foreach'
|
|
|
|
- 'pool_foreach'
|
|
|
|
- 'pool_foreach_index'
|
2023-08-02 15:58:58 +00:00
|
|
|
- 'pool_foreach_pointer'
|
2020-12-12 19:09:31 +01:00
|
|
|
- 'vec_foreach'
|
|
|
|
- 'vec_foreach_backwards'
|
|
|
|
- 'vec_foreach_index'
|
|
|
|
- 'vec_foreach_index_backwards'
|
2023-08-06 20:41:40 +02:00
|
|
|
- 'vec_foreach_pointer'
|
2020-12-12 19:09:31 +01:00
|
|
|
- 'vlib_foreach_rx_tx'
|
2023-09-29 14:31:08 +02:00
|
|
|
- 'foreach_int'
|
2023-10-17 16:06:26 +00:00
|
|
|
- 'foreach_pointer'
|
2021-03-26 11:38:01 +01:00
|
|
|
- 'foreach_vlib_main'
|
2022-01-13 00:28:14 +01:00
|
|
|
- 'foreach_set_bit_index'
|
2023-05-26 19:01:29 +00:00
|
|
|
- 'foreach_vlib_frame_bitmap_set_bit_index'
|
2023-03-16 16:34:30 +00:00
|
|
|
- 'FOREACH_ARRAY_ELT'
|
2022-01-05 14:51:50 +01:00
|
|
|
- 'RTE_ETH_FOREACH_DEV'
|
2024-05-23 13:06:39 +00:00
|
|
|
- 'foreach_clib_stack_frame'
|
2023-10-17 16:06:26 +00:00
|
|
|
- 'foreach_vnet_dev_rx_queue_runtime'
|
|
|
|
- 'foreach_vnet_dev_counter'
|
|
|
|
- 'foreach_vnet_dev_port_rx_queue'
|
|
|
|
- 'foreach_vnet_dev_port_tx_queue'
|
|
|
|
- 'foreach_vnet_dev_port'
|
2023-11-13 17:33:32 +00:00
|
|
|
- 'foreach_vnet_dev_args'
|
|
|
|
- 'foreach_vnet_dev_port_args'
|
2024-10-08 20:47:38 +02:00
|
|
|
- 'foreach_clib_dt_tree_node'
|
|
|
|
- 'foreach_clib_dt_child_node'
|
2020-12-12 19:09:31 +01:00
|
|
|
|
2021-04-25 10:46:26 +02:00
|
|
|
StatementMacros:
|
|
|
|
- 'CLIB_MULTIARCH_FN'
|
|
|
|
- 'VLIB_NODE_FN'
|
2023-10-17 16:06:26 +00:00
|
|
|
- 'VNET_DEV_NODE_FN'
|
2021-04-25 10:46:26 +02:00
|
|
|
- 'VNET_DEVICE_CLASS_TX_FN'
|
|
|
|
- '__clib_section'
|
|
|
|
- '__clib_aligned'
|
2022-03-25 17:24:26 +01:00
|
|
|
|
|
|
|
WhitespaceSensitiveMacros:
|
|
|
|
- 'WARN_ON'
|
|
|
|
- 'WARN_OFF'
|