From dcd213ee68b84475997ae74d21b23e8be2e53667 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 27 Sep 2023 11:05:58 +0100 Subject: [PATCH] try using clang format to make auto-formatting work well --- .clang-format | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8c5ba6f --- /dev/null +++ b/.clang-format @@ -0,0 +1,28 @@ +Language: Cpp +BasedOnStyle: GNU +UseTab: Never +IndentWidth: 2 +ContinuationIndentWidth: 2 +ColumnLimit: 80 +AlignAfterOpenBracket: Align +AlignArrayOfStructures: Left +AlignConsecutiveAssignments: Consecutive +AlignConsecutiveBitFields: Consecutive +AlignConsecutiveMacros: + Enabled: True + AcrossEmptyLines: False + AcrossComments: True +AlignConsecutiveDeclarations: Consecutive +AlignEscapedNewlines: Left +AlignOperands: Align +AllowAllParametersOfDeclarationOnNextLine: True +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AllowShortLoopsOnASingleLine: True +AlwaysBreakAfterReturnType: AllDefinitions +IndentGotoLabels: False +SpaceAfterCStyleCast: False +SpaceAfterLogicalNot: False +SpaceBeforeAssignmentOperators: True +SpaceBeforeParens: ControlStatements +IncludeBlocks: Preserve +SortIncludes: Never