summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-07 23:14:18 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-07 23:14:18 +0200
commit2b13efa7b78ab2bb08cba52e09b1f12af1701fd9 (patch)
treed2a2c51dcfe2e2db5fd25db3a77b96829141564b /.clang-format
parentdc8c474ec4460d07e42c97e5fc24af99ec5bf3e4 (diff)
downloadcpp-templates-2b13efa7b78ab2bb08cba52e09b1f12af1701fd9.tar.gz
cpp-templates-2b13efa7b78ab2bb08cba52e09b1f12af1701fd9.zip
make: add make file and clang-{tidy,format} configs
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..0a1656e
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,16 @@
+# dotfiles -- clang-format
+# author: johannst
+# doc : https://clang.llvm.org/docs/ClangFormatStyleOptions.html
+---
+
+Language: Cpp
+BasedOnStyle: Chromium
+
+AllowShortFunctionsOnASingleLine: None
+#AllowShortFunctionsOnASingleLine: Empty
+
+AccessModifierOffset: -2
+IndentWidth: 2
+
+AlignConsecutiveMacros: true
+AlignConsecutiveAssignments: true