diff options
| author | Mel <mel@rnrd.eu> | 2025-03-04 21:41:01 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-03-04 21:49:44 +0100 |
| commit | 03dd7d175cbfb728e0c9708b515a5b0435eaa29a (patch) | |
| tree | a413cf042b5df70aa4d7b55a3185cc79b4a006a8 | |
| parent | 6baf136b803418413d2bf211223b4ed3420a2ea2 (diff) | |
| download | catskill-03dd7d175cbfb728e0c9708b515a5b0435eaa29a.tar.zst catskill-03dd7d175cbfb728e0c9708b515a5b0435eaa29a.zip | |
Add bespoke .clang-format
Signed-off-by: Mel <mel@rnrd.eu>
| -rw-r--r-- | .clang-format | 19 |
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 +... |
