Skip to content

Conversation

amorde
Copy link
Member

@amorde amorde commented Aug 22, 2025

/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
Copy link
Member Author

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
Copy link
Member Author

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 _) {
Copy link
Member Author

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.

Copy link

@square-tomb square-tomb left a 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.

@amorde amorde merged commit 90ca934 into master Aug 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants