Skip to content

Commit a0a39f8

Browse files
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting. See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement. Change-Id: I474dc261d5698b702bab7b9305c1d6958f43d40f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
1 parent 1cc7921 commit a0a39f8

File tree

2 files changed

+467
-448
lines changed

2 files changed

+467
-448
lines changed

.clang-format

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ IndentWidth: 4
8787
IndentWrappedFunctionNames: true
8888
InsertNewlineAtEOF: true
8989
KeepEmptyLinesAtTheStartOfBlocks: false
90-
LambdaBodyIndentation: OuterScope
90+
LambdaBodyIndentation: Signature
9191
LineEnding: LF
9292
MacroBlockBegin: ''
9393
MacroBlockEnd: ''
@@ -98,13 +98,14 @@ ObjCSpaceAfterProperty: false
9898
ObjCSpaceBeforeProtocolList: true
9999
PackConstructorInitializers: BinPack
100100
PenaltyBreakAssignment: 25
101-
PenaltyBreakBeforeFirstCallParameter: 19
101+
PenaltyBreakBeforeFirstCallParameter: 50
102102
PenaltyBreakComment: 300
103103
PenaltyBreakFirstLessLess: 120
104104
PenaltyBreakString: 1000
105+
PenaltyBreakTemplateDeclaration: 10
105106
PenaltyExcessCharacter: 1000000
106107
PenaltyReturnTypeOnItsOwnLine: 60
107-
PenaltyIndentedWhitespace: 0
108+
PenaltyIndentedWhitespace: 1
108109
PointerAlignment: Left
109110
QualifierAlignment: Left
110111
ReferenceAlignment: Left

0 commit comments

Comments
 (0)