From dd731b60c34e069230485c0e479990d9ae096cb1 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 3 May 2025 16:39:38 +0300 Subject: [PATCH] updated clang format --- .clang-format | 84 ++++++++++++++++++++++++++------------------------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/.clang-format b/.clang-format index d074535..989123a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,62 +1,64 @@ -# Generated from CLion C/C++ Code Style settings ---- -Language: Cpp +# Generated by CLion for Stroustrup +# The Stroustrup style, named after Bjarne Stroustrup, the creator of C++, is similar to the K&R style but differs +# in its treatment of the class definitions and the placement of braces in certain contexts. The opening brace is +# placed on the same line as the control statement, and the closing brace is on its own line. BasedOnStyle: LLVM + AccessModifierOffset: -4 -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignOperands: true +AlignConsecutiveAssignments: None +AlignConsecutiveBitFields: None +AlignConsecutiveDeclarations: None +AlignConsecutiveMacros: AcrossEmptyLinesAndComments AlignTrailingComments: false -AllowShortBlocksOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AlwaysBreakTemplateDeclarations: Yes -BraceWrapping: +AllowShortBlocksOnASingleLine: Always +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AlwaysBreakTemplateDeclarations: No +BreakBeforeBraces: Custom +BraceWrapping: AfterCaseLabel: true AfterClass: true - AfterControlStatement: true - AfterEnum: true AfterFunction: true + AfterControlStatement: true + SplitEmptyFunction: true + AfterEnum: true AfterNamespace: true AfterStruct: true AfterUnion: true AfterExternBlock: true - BeforeCatch: false - BeforeElse: false + BeforeCatch: true + BeforeElse: true BeforeLambdaBody: true - BeforeWhile: false - IndentBraces: false - SplitEmptyFunction: true + BeforeWhile: true SplitEmptyRecord: true SplitEmptyNamespace: true -BreakBeforeBraces: Custom -BreakConstructorInitializers: AfterColon -BreakConstructorInitializersBeforeComma: false +BreakBeforeBinaryOperators: All +BreakBeforeConceptDeclarations: false ColumnLimit: 120 -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ContinuationIndentWidth: 8 -IncludeCategories: - - Regex: '^<.*' - Priority: 1 - - Regex: '^".*' - Priority: 2 - - Regex: '.*' - Priority: 3 -IncludeIsMainRegex: '([-_](test|unittest))?$' -IndentCaseLabels: true +IncludeBlocks: Merge +IndentExternBlock: Indent +IndentRequiresClause: false IndentWidth: 4 -InsertNewlineAtEOF: true -MacroBlockBegin: '' -MacroBlockEnd: '' -MaxEmptyLinesToKeep: 2 +ContinuationIndentWidth: 8 +KeepEmptyLinesAtTheStartOfBlocks: false NamespaceIndentation: All PointerAlignment: Left -SpaceAfterCStyleCast: true +SortUsingDeclarations: true SpaceAfterTemplateKeyword: false +SpaceBeforeCtorInitializerColon: false +SpaceBeforeParens: Custom +SpaceBeforeParensOptions: + AfterControlStatements: true + AfterFunctionDeclarationName: false + AfterFunctionDefinitionName: false + AfterForeachMacros: true + AfterIfMacros: true + AfterOverloadedOperator: false + BeforeNonEmptyParentheses: false SpaceBeforeRangeBasedForLoopColon: false SpaceInEmptyParentheses: false -SpacesInAngles: false -SpacesInConditionalStatement: false SpacesInCStyleCastParentheses: false -SpacesInParentheses: false -TabWidth: 4 -... +SpacesInConditionalStatement: false +SpacesInContainerLiterals: false +SpacesInParentheses: false \ No newline at end of file