summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2025-12-10 15:52:34 +0100
committerJan Wolff <janw@mailbox.org>2025-12-10 15:52:34 +0100
commitad89e1050da046f195b683d765d7060e32b71d8a (patch)
treed7dfded8880e00c7a01dac0c7de8e9a44c20a08a /.clang-format
initial commitHEADmain
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format10
1 files changed, 10 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..b88d285
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,10 @@
+# Linux-like style
+BasedOnStyle: LLVM
+IndentWidth: 4
+UseTab: Never
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: true
+IndentCaseLabels: false
+# Force pointers to the type
+DerivePointerAlignment: false
+PointerAlignment: Left