From bb28930eee479b4c9f3f9f8e41946ff77a347239 Mon Sep 17 00:00:00 2001 From: Daniel B <23653928+daniel-brosche@users.noreply.github.com> Date: Fri, 1 Oct 2021 19:44:44 +0200 Subject: [PATCH] initial version of a clang format file that matches quite good with the existing coding style (#436) Co-authored-by: Daniel B --- .clang-format | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..8e7ff44e --- /dev/null +++ b/.clang-format @@ -0,0 +1,25 @@ +--- +Language: Cpp + +SortIncludes: false + +BasedOnStyle: Chromium + +BreakBeforeBraces: Stroustrup + +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false + +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +ConstructorInitializerIndentWidth: '2' + +ColumnLimit: '150' +ContinuationIndentWidth: '2' +TabWidth: '2' +IndentWidth: '2' +AccessModifierOffset : '-2' +IndentCaseLabels: false +Cpp11BracedListStyle: 'true' +...