aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/.clang-format
diff options
context:
space:
mode:
authorMauro <you@example.com>2021-02-11 11:03:12 +0000
committerMauro Sardara <msardara@cisco.com>2021-02-11 11:59:38 +0000
commiteedc20451418af57a6ffe4c6d41652828f01b9fe (patch)
tree86d442cc4093cfc862672d5db74a561a3d4b9b0e /hicn-plugin/.clang-format
parent9e06c0466f7bf8c2fe80f5fc79fe1cb95053eedd (diff)
[HICN-683] Add clang format for hicn-plugin.
As vpp has moved away from the dear old indent, also the hicn plugin should do the same and use clang-format. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Iee896f3ce01cef53b1acfccbebeef66ca77add7d Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-plugin/.clang-format')
-rw-r--r--hicn-plugin/.clang-format21
1 files changed, 21 insertions, 0 deletions
diff --git a/hicn-plugin/.clang-format b/hicn-plugin/.clang-format
new file mode 100644
index 000000000..8b5c955ce
--- /dev/null
+++ b/hicn-plugin/.clang-format
@@ -0,0 +1,21 @@
+# Minimal clang-format version is 8
+
+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'
+