aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-09 14:27:33 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-09 14:27:33 +0100
commit7b98ecd905f65fdc0ebbbc5d4e275d67b21e3a5f (patch)
treeafe628d3ba83e439be5fde86d4020db52cde9fd8 /.clang-format
parent9eb4c7cefbe2e71a7df4386878b0b4cf51242dbe (diff)
add style guide + formatters
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format19
1 files changed, 19 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..f180135
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,19 @@
+---
+AccessModifierOffset: -4
+AlignConsecutiveAssignments: true
+AllowShortIfStatementsOnASingleLine: AllIfsAndElse
+AllowShortLoopsOnASingleLine: true
+BasedOnStyle: LLVM
+BreakBeforeBraces: Attach
+ColumnLimit: 180
+EmptyLineBeforeAccessModifier: Always
+IndentAccessModifiers: false
+IndentCaseLabels: true
+IndentWidth: 4
+Language: Cpp
+Standard: Cpp11
+TabWidth: 4
+UseTab: Always
+...
+
+# vim: ft=yaml