From bca1fad27ad00b6e6ac93c587eef5cc9465b571d Mon Sep 17 00:00:00 2001 From: Bader <49657842+baderouaich@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:22:57 +0100 Subject: [PATCH] Update .clang-format --- .clang-format | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.clang-format b/.clang-format index 9a6f0e252..13865d067 100644 --- a/.clang-format +++ b/.clang-format @@ -1,8 +1,6 @@ -# Generated from CLion C/C++ Code Style settings # https://zed0.co.uk/clang-format-configurator -BasedOnStyle: LLVM +BasedOnStyle: Google AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: None AlignOperands: Align AllowAllArgumentsOnNextLine: false AllowAllConstructorInitializersOnNextLine: false @@ -15,7 +13,6 @@ AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: true AlwaysBreakAfterReturnType: None AlwaysBreakTemplateDeclarations: Yes -BreakBeforeBraces: Custom BraceWrapping: AfterCaseLabel: false AfterClass: false @@ -39,7 +36,9 @@ ContinuationIndentWidth: 2 IndentCaseLabels: true IndentPPDirectives: None IndentWidth: 2 -Language: Cpp +BracedInitializerIndentWidth: 2 +PPIndentWidth: 2 +ConstructorInitializerIndentWidth: 2 KeepEmptyLinesAtTheStartOfBlocks: true MaxEmptyLinesToKeep: 2 NamespaceIndentation: All @@ -65,9 +64,13 @@ SpacesInParentheses: false SpacesInSquareBrackets: false TabWidth: 2 UseTab: Never -IndentAccessModifiers: true -AccessModifierOffset: 0 +AccessModifierOffset: -2 ReferenceAlignment: Left FixNamespaceComments: false -IncludeBlocks: Preserve -SortIncludes: Never \ No newline at end of file +IndentAccessModifiers: false +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlines: Left +AlignTrailingComments: true +BreakBeforeBraces: Attach +SortIncludes: Never