diff options
Diffstat (limited to '.clang-format')
| -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 +... |
