summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2021-07-08 20:31:34 +0200
committerJan Wolff <janw@mailbox.org>2021-07-08 20:31:34 +0200
commit16399fab9e592cf1e12f1fd56c11f12ae9bc575f (patch)
treee428891a59451187c8ce1866332701973fc0cf3a /.clang-format
initial commit
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