From d42296b8d78dc11f06f2232f94b1e521ecebc245 Mon Sep 17 00:00:00 2001 From: Yuqiang Wang Date: Fri, 26 Sep 2025 18:43:15 +0800 Subject: [PATCH] improve[format]: optimize the formatting display --- .clang-format | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index deb88cf9179..ebcac082c6a 100644 --- a/.clang-format +++ b/.clang-format @@ -72,7 +72,7 @@ BraceWrapping: AfterNamespace: true AfterObjCDeclaration: true AfterStruct: true - AfterUnion: false + AfterUnion: true BeforeCatch: true BeforeElse: true BeforeLambdaBody: false @@ -84,7 +84,7 @@ BraceWrapping: BreakAfterAttributes: Never BreakAfterJavaFieldAnnotations: false BreakArrays: false -BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBinaryOperators: None BreakBeforeConceptDeclarations: Always BreakBeforeInlineASMColon: OnlyMultiline BreakBeforeTernaryOperators: true @@ -96,7 +96,7 @@ CommentPragmas: "^ IWYU pragma:" CompactNamespaces: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 -Cpp11BracedListStyle: true +Cpp11BracedListStyle: false DerivePointerAlignment: false DisableFormat: false EmptyLineAfterAccessModifier: Never