From b92388c31a150e7cb486c74706edfff9bb6f54d1 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 7 May 2022 23:06:55 +0200 Subject: [PATCH] Add clang-format configuration --- .clang-format | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..ed79b5e --- /dev/null +++ b/.clang-format @@ -0,0 +1,20 @@ +--- +Language: Cpp +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignOperands: true +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: All +BreakBeforeBraces: Linux +ContinuationIndentWidth: 2 +ColumnLimit: 120 +ForEachMacros: ['GIRARA_LIST_FOREACH'] +IndentWidth: 2 +PointerAlignment: Left +TabWidth: 2 +IndentCaseLabels: true +... +