From 03dd7d175cbfb728e0c9708b515a5b0435eaa29a Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 4 Mar 2025 21:41:01 +0100 Subject: Add bespoke .clang-format Signed-off-by: Mel --- .clang-format | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') 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 +... -- cgit 1.4.1