Skip to content

Commit c49320d

Browse files
CYFS3Rbb666
authored andcommitted
[clang-format] Improve declaration alignment and spacing
1 parent 9657b3c commit c49320d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎.clang-format‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AccessModifierOffset: -1
1010
AlignAfterOpenBracket: Align
1111
AlignArrayOfStructures: None
1212
AlignConsecutiveAssignments:
13-
Enabled: false
13+
Enabled: true
1414
AcrossEmptyLines: false
1515
AcrossComments: false
1616
AlignCompound: true
@@ -22,10 +22,12 @@ AlignConsecutiveBitFields:
2222
AlignCompound: true
2323
PadOperators: true
2424
AlignConsecutiveDeclarations:
25-
Enabled: false
25+
Enabled: true
2626
AcrossEmptyLines: false
2727
AcrossComments: false
2828
AlignCompound: false
29+
AlignFunctionDeclarations: false
30+
AlignFunctionPointers: true
2931
PadOperators: false
3032
AlignConsecutiveMacros:
3133
Enabled: true
@@ -152,7 +154,7 @@ LambdaBodyIndentation: Signature
152154
LineEnding: DeriveLF
153155
MacroBlockBegin: ""
154156
MacroBlockEnd: ""
155-
MaxEmptyLinesToKeep: 2
157+
MaxEmptyLinesToKeep: 1
156158
NamespaceIndentation: All
157159
ObjCBinPackProtocolList: Auto
158160
ObjCBlockIndentWidth: 2

0 commit comments

Comments
 (0)