about summary refs log tree commit diff
path: root/.clang-format
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-03-04 21:41:01 +0100
committerMel <mel@rnrd.eu>2025-03-04 21:49:44 +0100
commit03dd7d175cbfb728e0c9708b515a5b0435eaa29a (patch)
treea413cf042b5df70aa4d7b55a3185cc79b4a006a8 /.clang-format
parent6baf136b803418413d2bf211223b4ed3420a2ea2 (diff)
downloadcatskill-03dd7d175cbfb728e0c9708b515a5b0435eaa29a.tar.zst
catskill-03dd7d175cbfb728e0c9708b515a5b0435eaa29a.zip
Add bespoke .clang-format
Signed-off-by: Mel <mel@rnrd.eu>
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..577bf60
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,19 @@
+# a relatively bespoke formatting style for C in particular.
+# might undergo changes if i find something i don't like.
+---
+Language: Cpp
+BasedOnStyle: Mozilla
+AlignEscapedNewlines: Left
+AllowShortBlocksOnASingleLine: Always
+AllowShortIfStatementsOnASingleLine: WithoutElse
+AllowShortLoopsOnASingleLine: true
+BreakAfterReturnType: AllDefinitions
+BinPackArguments: true
+BinPackParameters: true
+BreakBeforeBinaryOperators: NonAssignment
+ColumnLimit: 100
+ContinuationIndentWidth: 4
+IndentCaseLabels: false
+IndentWidth: 4
+PenaltyIndentedWhitespace: 100
+...