-
Notifications
You must be signed in to change notification settings - Fork 175
Bump clang-format to 19.1.4 #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
amorde
commented
Aug 22, 2025
- Bump clang-format to 19.1.4 built from https://github.com/swiftlang/llvm-project/releases/tag/swift-6.1.1-RELEASE
- Update .clang-format based on new settings introduced since version 12
/usr/bin/python3 "$DIR"/custom/GenericCategoryLinebreakIndentation.py | | ||
/usr/bin/python3 "$DIR"/custom/ParameterAfterBlockNewline.py | | ||
/usr/bin/python3 "$DIR"/custom/HasIncludeSpaceRemover.py | | ||
/usr/bin/python3 "$DIR"/custom/NewLineAtEndOfFileInserter.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is obsolete now that clang-format includes an option to force a newline before EOF via InsertNewlineAtEOF: true
@@ -97,8 +97,8 @@ @interface Foo | |||
Update(UpdateType t, const Slice &v) : type(t), value(v.data(), v.size()) {} | |||
}; | |||
|
|||
/* Same deal here, don't mess with adding newlines after this comment block | |||
* with a different comment style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these unfortunately produce a large amount of changes in our repo, but I can't seem to find which setting controls this behavior. I looked at all of the settings here marked with clang-format {XYZ}
where XYZ
was 13-19
success(model); | ||
} | ||
}, failure); | ||
return INSAPIClientModelSuccessChain(mantleClass, keyPath, ^(__kindof INSModel *model, id _) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this might be controlled by https://clang.llvm.org/docs/ClangFormatStyleOptions.html#lambdabodyindentation but its not clear if there's a way to not change these. However, the new version seems nicer IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes this makes in Register (squareup/ios-register@59c4574e856bb4a29bcce712446836f4edadff52) look good to me.