Skip to content
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

Update the generated_swift_names_* files. #1490

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

thomasvl
Copy link
Collaborator

No description provided.

@@ -48,6 +48,7 @@ message GeneratedSwiftReservedEnums {
enum BinaryEncodingError { NONE_BinaryEncodingError = 0; }
enum BinaryEncodingMessageSetSizeVisitor { NONE_BinaryEncodingMessageSetSizeVisitor = 0; }
enum BinaryEncodingMessageSetVisitor { NONE_BinaryEncodingMessageSetVisitor = 0; }
enum BinaryEncodingOptions { NONE_BinaryEncodingOptions = 0; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum name diff is so nice and small. I wonder if we can rework the enum cases generator as well? Maybe combine enum name and enum cases to generate one enum with a single case each? That would make these easier to review.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm.... that wouldn't test for accidental collisions from renaming rules, though. Hmmm...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I was just thinking we could do an enum per case to reduce the diffs if we wanted. Might also help some of the compile times for these files. But anything else I come up with (100 cases per enum), still would have the ripple effects as things are added/removed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Group by first letter, maybe? That would limit the ripple effect, and seems like it would still keep things together that might be prone to collide.

@thomasvl thomasvl merged commit 10295a8 into apple:main Oct 27, 2023
9 checks passed
@thomasvl thomasvl deleted the regen branch October 27, 2023 17:19
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