aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
blob: 8326a07251b0e96fcafacfe539a8852bd1512780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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'
  - 'vec_foreach'
  - 'vec_foreach_backwards'
  - 'vec_foreach_index'
  - 'vec_foreach_index_backwards'
  - 'vlib_foreach_rx_tx'
  - 'foreach_vlib_main'
  - 'foreach_set_bit_index'
  - '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'
devel confinement: classic parts: vpp: source-type: tar source: vpp.tgz plugin: nil build-packages: - gcc-8 - make - libnuma-dev - libpcap-dev stage-packages: # For the dpdk plugin - libnuma1 override-build: | dpkg -i vpp-ext-deps*.deb || true UNATTENDED=y make install-dep install-ext-deps build-release override-prime: | # Copy the build result into SNAPCRAFT_PRIME cd $SNAPCRAFT_PART_SRC/../build/build-root/install-vpp-native tar cf - . | (cd $SNAPCRAFT_PRIME ; tar xf -) # Copy staged libraries into SNAPCRAFT_PRIME cp $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lib* $SNAPCRAFT_PRIME/vpp/lib # Strip (unneeded) symbols cd $SNAPCRAFT_PRIME find . -type f -exec strip --strip-unneeded '{}' ';' 2> /dev/null || true apps: vpp: command: vpp/bin/vpp -c $SNAP/vpp/etc/vpp/startup.conf daemon: simple environment: "LD_LIBRARY_PATH": "$SNAP/vpp/lib:$SNAP/vpp/lib/vpp_plugins:$SNAP/vpp/lib/vpp_api_test_plugins" vppctl: command: vpp/bin/vppctl environment: "LD_LIBRARY_PATH": "$SNAP/vpp/lib" vpp-api-test: command: vpp/bin/vpp_api_test environment: "LD_LIBRARY_PATH": "$SNAP/vpp/lib" svmtool: command: vpp/bin/svmtool environment: "LD_LIBRARY_PATH": "$SNAP/vpp/lib"