aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-10 13:49:39 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-10 13:49:39 +0100
commit931fbf84e5a46649c9adf073e9b3d1d776af0b54 (patch)
treed16f098aae7f646534f2f6cb8dc2820040a3384f /.clang-format
parent2baf3b730dc20c85e4a5aa2fb609dd4703695908 (diff)
fix clang-format configuration and run `clang-format`
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format12
1 files changed, 7 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format
index 2f7e218..f180135 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,16 +1,18 @@
---
-AccessModifierOffset: 0
+AccessModifierOffset: -4
AlignConsecutiveAssignments: true
-AllowShortIfStatementsOnASingleLine: WithoutElse
+AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
BasedOnStyle: LLVM
BreakBeforeBraces: Attach
-ColumnLimit: 100
+ColumnLimit: 180
+EmptyLineBeforeAccessModifier: Always
+IndentAccessModifiers: false
IndentCaseLabels: true
-IndentWidth: '4'
+IndentWidth: 4
Language: Cpp
Standard: Cpp11
-TabWidth: '4'
+TabWidth: 4
UseTab: Always
...