From ecb8b881f243bb6826e32baa82627b509930c539 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Mon, 20 Jul 2026 11:05:19 +0800 Subject: [PATCH] [clang-format] Improve declaration alignment and spacing --- .clang-format | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index ebcac082c6a..e65353af4e4 100644 --- a/.clang-format +++ b/.clang-format @@ -10,7 +10,7 @@ AccessModifierOffset: -1 AlignAfterOpenBracket: Align AlignArrayOfStructures: None AlignConsecutiveAssignments: - Enabled: false + Enabled: true AcrossEmptyLines: false AcrossComments: false AlignCompound: true @@ -22,10 +22,12 @@ AlignConsecutiveBitFields: AlignCompound: true PadOperators: true AlignConsecutiveDeclarations: - Enabled: false + Enabled: true AcrossEmptyLines: false AcrossComments: false AlignCompound: false + AlignFunctionDeclarations: false + AlignFunctionPointers: true PadOperators: false AlignConsecutiveMacros: Enabled: true @@ -152,7 +154,7 @@ LambdaBodyIndentation: Signature LineEnding: DeriveLF MacroBlockBegin: "" MacroBlockEnd: "" -MaxEmptyLinesToKeep: 2 +MaxEmptyLinesToKeep: 1 NamespaceIndentation: All ObjCBinPackProtocolList: Auto ObjCBlockIndentWidth: 2