08057947f3
foreach_int(x, 1, 3, 5, 7) { fformat(stdout, "x is %u\n", x); } Type: improvement Change-Id: Idc355f4a284f421b150e3acb7a3a57bcede408c7 Signed-off-by: Damjan Marion <damarion@cisco.com>
40 lines
866 B
YAML
40 lines
866 B
YAML
# Minimal clang-format version is 11
|
|
|
|
BasedOnStyle: GNU
|
|
UseTab: Always
|
|
SpaceAfterCStyleCast: true
|
|
SortIncludes: false
|
|
AlignConsecutiveMacros: true
|
|
BreakBeforeTernaryOperators: false
|
|
BreakBeforeBinaryOperators: None
|
|
ContinuationIndentWidth: 2
|
|
|
|
ForEachMacros:
|
|
- 'clib_bitmap_foreach'
|
|
- 'pool_foreach'
|
|
- 'pool_foreach_index'
|
|
- 'pool_foreach_pointer'
|
|
- 'vec_foreach'
|
|
- 'vec_foreach_backwards'
|
|
- 'vec_foreach_index'
|
|
- 'vec_foreach_index_backwards'
|
|
- 'vec_foreach_pointer'
|
|
- 'vlib_foreach_rx_tx'
|
|
- 'foreach_int'
|
|
- 'foreach_vlib_main'
|
|
- 'foreach_set_bit_index'
|
|
- 'foreach_vlib_frame_bitmap_set_bit_index'
|
|
- 'FOREACH_ARRAY_ELT'
|
|
- 'RTE_ETH_FOREACH_DEV'
|
|
|
|
StatementMacros:
|
|
- 'CLIB_MULTIARCH_FN'
|
|
- 'VLIB_NODE_FN'
|
|
- 'VNET_DEVICE_CLASS_TX_FN'
|
|
- '__clib_section'
|
|
- '__clib_aligned'
|
|
|
|
WhitespaceSensitiveMacros:
|
|
- 'WARN_ON'
|
|
- 'WARN_OFF'
|