summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRbb666 <[email protected]>2026-07-23 11:00:27 +0800
committerRbb666 <[email protected]>2026-07-23 11:10:42 +0800
commite01b14c818ba2a44269e5ab6bee91e5459c446e3 (patch)
tree88b3aca8e2e3d818079f40627d44e71b92192e2d
parentf975c7c4caca20a5aa9f5570f4e6935311eb77a1 (diff)
Revert "[clang-format] Improve declaration alignment and spacing"
This reverts commit c49320d57d324d789703d428b5fd78ca5413af4d.
-rw-r--r--.clang-format8
1 files changed, 3 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format
index e65353af4e..ebcac082c6 100644
--- a/.clang-format
+++ b/.clang-format
@@ -10,7 +10,7 @@ AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
- Enabled: true
+ Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true
@@ -22,12 +22,10 @@ AlignConsecutiveBitFields:
AlignCompound: true
PadOperators: true
AlignConsecutiveDeclarations:
- Enabled: true
+ Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
- AlignFunctionDeclarations: false
- AlignFunctionPointers: true
PadOperators: false
AlignConsecutiveMacros:
Enabled: true
@@ -154,7 +152,7 @@ LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ""
MacroBlockEnd: ""
-MaxEmptyLinesToKeep: 1
+MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2