From 3b32bd539bfa0daf169559e009f3e9aa6140f4ce Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 31 Jul 2020 00:23:03 +0200 Subject: Add clang format specification --- .clang-format | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c182735 --- /dev/null +++ b/.clang-format @@ -0,0 +1,27 @@ +--- +IndentWidth: 8 +TabWidth: 8 +ContinuationIndentWidth: 8 +UseTab: Always +ColumnLimit: 100 + +AlignConsecutiveMacros: true +AlignEscapedNewlines: Left +AlignTrailingComments: true + +AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortFunctionsOnASingleLine: Empty + +BreakBeforeBinaryOperators: None +BreakStringLiterals: false + +PenaltyExcessCharacter: 10 +PenaltyBreakBeforeFirstCallParameter: 999999 +PenaltyBreakAssignment: 10 + +MaxEmptyLinesToKeep: 1 +PointerAlignment: Right +ReflowComments: true +SortIncludes: true +--- -- cgit v1.2.3