summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqiang Wang <[email protected]>2025-09-26 18:43:15 +0800
committerR b b666 <[email protected]>2025-09-27 09:23:54 +0800
commitfdb6acdf5c1d92544a2e845ee2186af26ed3234a (patch)
treee27ed39619c8d4d89f108652cd264d1530f48862
parent01e015450fe89185a5d63ee1eca25e76061ee99d (diff)
improve[format]: optimize the formatting display
-rw-r--r--.clang-format6
1 files changed, 3 insertions, 3 deletions
diff --git a/.clang-format b/.clang-format
index deb88cf917..ebcac082c6 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