From 1a0529b05fab1afd067b1229dcb2f8f71be3d5b7 Mon Sep 17 00:00:00 2001 From: BhuvanChandra DV Date: Wed, 15 Nov 2023 02:27:11 +0900 Subject: [PATCH] add clang format cfg --- .clang-format | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b502b67 --- /dev/null +++ b/.clang-format @@ -0,0 +1,32 @@ +--- +BasedOnStyle: Google +Standard: Cpp11 + +UseTab: Never + +IndentWidth: 4 +ConstructorInitializerIndentWidth: 8 +ContinuationIndentWidth: 8 +AccessModifierOffset: -4 + +AlwaysBreakTemplateDeclarations: true + +BreakConstructorInitializersBeforeComma: true +ConstructorInitializerAllOnOneLineOrOnePerLine: false + +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false + +AlignAfterOpenBracket: DontAlign +DerivePointerAlignment: false +PointerAlignment: Left + +SortIncludes: false +SpaceAfterCStyleCast: true + +CommentPragmas: '^[/!]<' + +ColumnLimit: 120