-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
/* Same deal here, don't mess with adding newlines after this comment block | ||
* with a different comment style | ||
* and trailing spaces */ | ||
@implementation Foo | ||
@end | ||
|
@@ -189,8 +189,7 @@ - (void)paranthesisInMessage | |
} | ||
|
||
- (void)shortMethod | ||
{ | ||
} | ||
{} | ||
|
||
- (void)dictsInArray | ||
{ | ||
|
@@ -215,23 +214,20 @@ BOOL CStyleMethod() | |
|
||
INSAFSuccessBlock INSAPIClientModelSuccessHandler(Class mantleClass, NSString *__nullable keyPath, INSHTTPSuccess __nullable success, INSHTTPFailure __nullable failure) | ||
{ | ||
return INSAPIClientModelSuccessChain( | ||
mantleClass, keyPath, ^(__kindof INSModel *model, id _) { | ||
if (success) { | ||
success(model); | ||
} | ||
}, failure); | ||
return INSAPIClientModelSuccessChain(mantleClass, keyPath, ^(__kindof INSModel *model, id _) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
if (success) { | ||
success(model); | ||
} | ||
}, failure); | ||
} | ||
|
||
- (void)fetchWithSuccess:(nullable dispatch_block_t)success failure:(nullable INSHTTPFailure)failure | ||
{ | ||
[self GET:@"data" parameters:nil success:INSAPIClientModelArraySuccessChain( | ||
[INSModel class], nil, ^(INSModel *model, id responseObject) { | ||
if (success) { | ||
success(); | ||
} | ||
}, failure) | ||
failure:failure]; | ||
[self GET:@"data" parameters:nil success:INSAPIClientModelArraySuccessChain([INSModel class], nil, ^(INSModel *model, id responseObject) { | ||
if (success) { | ||
success(); | ||
} | ||
}, failure) failure:failure]; | ||
} | ||
|
||
- (void)postWithSuccess:(nullable INSHTTPSuccess)success failure:(nullable INSHTTPFailure)failure | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
`clang-format-12.0.0` from: | ||
https://github.com/llvm/llvm-project based upon 244022a3cd75b51dcf1d2a5a822419492ce79e47, built with DCMAKE_BUILD_TYPE=Release | ||
`clang-format-19.1.4` from: | ||
https://github.com/swift/llvm-project based upon https://github.com/swiftlang/llvm-project/releases/tag/swift-6.1.1-RELEASE, built with DCMAKE_BUILD_TYPE=Release |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,11 +73,10 @@ function format_objc_file_dry_run() { | |
/usr/bin/python3 "$DIR"/custom/InlineConstructorOnSingleLine.py | | ||
/usr/bin/python3 "$DIR"/custom/MacroSemicolonAppender.py | | ||
/usr/bin/python3 "$DIR"/custom/DoubleNewlineInserter.py | | ||
"$DIR"/bin/clang-format-12.0.0-244022a3cd75b51dcf1d2a5a822419492ce79e47 -style=file | | ||
"$DIR"/bin/clang-format-19.1.4-fd3b4acf03680a2dafbf1d40b562f5dff1c4436f -style=file | | ||
/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 commentThe 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 |
||
/usr/bin/python3 "$DIR"/custom/HasIncludeSpaceRemover.py | ||
} | ||
|
||
function format_objc_file() { | ||
|
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}
whereXYZ
was 13-19