aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'src/.clang-format')
-rw-r--r--src/.clang-format12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/.clang-format b/src/.clang-format
new file mode 100644
index 0000000..d46a7a3
--- /dev/null
+++ b/src/.clang-format
@@ -0,0 +1,12 @@
+---
+# The "Linux kernel" style, borrowed and modified from
+# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#examples
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: AlignWithSpaces
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+
+ColumnLimit: 100
+AllowShortFunctionsOnASingleLine: Empty