aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-format10
-rw-r--r--makefile3
2 files changed, 10 insertions, 3 deletions
diff --git a/.clang-format b/.clang-format
index f180135..064fa96 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,11 +1,10 @@
---
AccessModifierOffset: -4
-AlignConsecutiveAssignments: true
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
BasedOnStyle: LLVM
BreakBeforeBraces: Attach
-ColumnLimit: 180
+ColumnLimit: 80
EmptyLineBeforeAccessModifier: Always
IndentAccessModifiers: false
IndentCaseLabels: true
@@ -14,6 +13,13 @@ Language: Cpp
Standard: Cpp11
TabWidth: 4
UseTab: Always
+PointerAlignment: Middle
+SpaceAfterCStyleCast: true
+AlignConsecutiveAssignments:
+ Enabled: false
+AlignTrailingComments:
+ Kind: Leave
+ReflowComments: false
...
# vim: ft=yaml
diff --git a/makefile b/makefile
index 090877e..2ea1c3d 100644
--- a/makefile
+++ b/makefile
@@ -8,5 +8,6 @@ doxygen: Doxyfile FORCE
FMT += $(shell git ls-files '*.h' '*.c' '*.cpp')
format: FORCE
clang-format -i $(FMT)
- clang-tidy --fix-errors $(FMT)
+# clang tidy doesn't work that well :/
+# clang-tidy --fix-errors $(FMT)