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

compiler: Apply rename rules to enum constants #523

Merged
merged 4 commits into from
May 27, 2020
Merged

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented May 24, 2020

I'm not 100% sure I want to make this change, as it could break existing generated code.

Fixes #522

@kyleconroy
Copy link
Collaborator Author

@kevinburkemeter Can you try out this commit and tell me if it breaks any of your existing code?

@kevinburke1
Copy link
Contributor

guessing you mean "not 100%"

@kyleconroy
Copy link
Collaborator Author

Yep, edited my original comment.

@kevinburke1
Copy link
Contributor

No diff using this commit, though I haven't tried adding the enum rename, let me try that now.

@kevinburke1
Copy link
Contributor

Works perfectly though I had to read the patch contents to figure out the underscore trick.

@kyleconroy
Copy link
Collaborator Author

@kevinburkemeter what value for the rename struct would you have expected instead of ip_protocol_tcp?

@kevinburke1
Copy link
Contributor

I don't know, ip_protocol.tcp maybe?

@kyleconroy kyleconroy merged commit 8f46216 into master May 27, 2020
@kyleconroy kyleconroy deleted the rename-constants branch May 27, 2020 21:33
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.

case for structs
2 participants