From d301ed725c9fbdac2b4dd414d7971cf04356b0a4 Mon Sep 17 00:00:00 2001 From: lasan Date: Sun, 24 May 2026 18:44:57 +0530 Subject: [PATCH] added clang format --- .clang-format | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..16237079 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +BasedOnStyle: Google +Standard: Cpp17 +ColumnLimit: 80 +IndentWidth: 2 +ContinuationIndentWidth: 4 +ConstructorInitializerIndentWidth: 4 +AccessModifierOffset: -1 +NamespaceIndentation: None +UseTab: Never +PointerAlignment: Left +ReferenceAlignment: Left +DerivePointerAlignment: false +AlignAfterOpenBracket: Align +BreakBeforeBraces: Attach +BreakBeforeBinaryOperators: None +BreakBeforeTernaryOperators: true +SpaceBeforeParens: ControlStatements +SpacesBeforeTrailingComments: 2 +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: WithoutElse +AllowShortLoopsOnASingleLine: true +AllowShortLambdasOnASingleLine: All +BinPackArguments: true +BinPackParameters: true +SortIncludes: false +IncludeBlocks: Preserve