summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-27 16:13:41 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-30 12:44:01 +0530
commite309091d17720b69c53172a41c0ea45ad7b66911 (patch)
tree166b05fb5dd7de7e0067ef0562567c4878c7050a /.clang-format
parentf3819a764bcac5a4959881795422c8e7b36cf398 (diff)
cmd/bpf: init
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format16
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..f304ad3
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,16 @@
+BasedOnStyle: LLVM
+BreakBeforeBraces: Linux
+IndentCaseLabels: false
+
+AlignConsecutiveMacros: true
+AllowShortIfStatementsOnASingleLine: false
+
+ContinuationIndentWidth: 8
+IndentWidth: 8
+TabWidth: 8
+UseTab: Always
+
+ForEachMacros:
+ - 'LIST_FOREACH'
+ - 'CIRCLEQ_FOREACH'
+ - 'cJSON_ArrayForEach'