[clang-format] Improve declaration alignment and spacing

This commit is contained in:
CYFS
2026-07-22 09:28:29 +08:00
committed by Rbb666
parent 9657b3ce10
commit c49320d57d
+5 -3
View File
@@ -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