From 2b269ea194ba74c82bf8a7b175d3496f09d06057 Mon Sep 17 00:00:00 2001 From: sunsets <845944018@qq.com> Date: Tue, 2 Apr 2024 14:10:58 +0800 Subject: [PATCH] Update .clang-format --- .clang-format | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.clang-format b/.clang-format index 0e6ea30..42ac9f1 100644 --- a/.clang-format +++ b/.clang-format @@ -3,11 +3,11 @@ # Language: Cpp AccessModifierOffset: -4 -AlignAfterOpenBracket: BlockIndent -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true AlignEscapedNewlines: DontAlign -AlignOperands: false +AlignOperands: true AlignTrailingComments: true AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: true @@ -25,7 +25,7 @@ BraceWrapping: AfterClass: true AfterControlStatement: false AfterEnum: false - AfterFunction: false + AfterFunction: true AfterNamespace: false AfterObjCDeclaration: false AfterStruct: true @@ -46,7 +46,7 @@ BreakConstructorInitializersBeforeComma: false BreakConstructorInitializers: BeforeComma BreakAfterJavaFieldAnnotations: false BreakStringLiterals: true -ColumnLimit: 100 +ColumnLimit: 140 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: true ConstructorInitializerAllOnOneLineOrOnePerLine: true