From 872c0d3e152b5c98cc457ba3c90c4e77f1b165b8 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Mon, 21 Jul 2025 23:27:13 +0300 Subject: [PATCH] .clang-format rules Signed-off-by: Alexander Borsuk .clang-format remove unnecessary semicolons Signed-off-by: Alexander Borsuk [clang-format] Removed "AlignArrayOfStructures". Signed-off-by: Viktor Govako --- .clang-format | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index a5b87e0ba..fceb426b3 100644 --- a/.clang-format +++ b/.clang-format @@ -3,7 +3,6 @@ BasedOnStyle: Google AccessModifierOffset: -2 AlignAfterOpenBracket: Align -AlignArrayOfStructures: Right AlignConsecutiveMacros: AcrossEmptyLinesAndComments AlignEscapedNewlines: LeftWithLastLine AlignOperands: AlignAfterOperator @@ -40,8 +39,10 @@ ColumnLimit: 120 ConstructorInitializerIndentWidth: 2 ContinuationIndentWidth: 4 DerivePointerAlignment: false +EmptyLineBeforeAccessModifier: Always IncludeBlocks: Preserve IndentAccessModifiers: false +IndentCaseLabels: false IndentExternBlock: NoIndent InsertBraces: false InsertNewlineAtEOF: true @@ -49,6 +50,7 @@ LambdaBodyIndentation: OuterScope PackConstructorInitializers: CurrentLine PointerAlignment: Middle RemoveBracesLLVM: true +RemoveSemicolon: true QualifierAlignment: Right SpacesInContainerLiterals: false Standard: Latest