blob: b925f8c2f0339cbcabca878a968d7d8294c7c7c5 [file] [log] [blame]
Damjan Marion942542f2020-12-12 19:09:31 +01001# Minimal clang-format version is 8
2
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'
16 - 'vec_foreach'
17 - 'vec_foreach_backwards'
18 - 'vec_foreach_index'
19 - 'vec_foreach_index_backwards'
20 - 'vlib_foreach_rx_tx'
Damjan Marion92ccf9b2021-03-26 11:38:01 +010021 - 'foreach_vlib_main'
Damjan Marion942542f2020-12-12 19:09:31 +010022
Damjan Marion23c34882021-04-25 10:46:26 +020023StatementMacros:
24 - 'CLIB_MULTIARCH_FN'
25 - 'VLIB_NODE_FN'
26 - 'VNET_DEVICE_CLASS_TX_FN'
27 - '__clib_section'
28 - '__clib_aligned'