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 context.cpp to avoid else after return #292

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

andriish
Copy link
Contributor

@andriish andriish commented Apr 4, 2024

Update context.cpp to avoid else after return

Update context.cpp to avoid else after return
@andriish andriish mentioned this pull request Apr 4, 2024
@andriish
Copy link
Contributor Author

andriish commented Apr 8, 2024

Also contains #296

Copy link
Member

@lyskov lyskov left a comment

Choose a reason for hiding this comment

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

@andriish
Copy link
Contributor Author

andriish commented Apr 9, 2024

The rule is here:

https://clang.llvm.org/extra/clang-tidy/checks/readability/else-after-return.html

But for the automatically generated code it also makes sense to reduce the size.

@andriish andriish requested a review from lyskov April 9, 2024 07:50
@lyskov
Copy link
Member

lyskov commented Apr 11, 2024

Oh, i have not realized that this is inside generated code, - i see your point, - makes sense to me!

Copy link
Member

@lyskov lyskov left a comment

Choose a reason for hiding this comment

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

LGTM, - thank you @andriish !

@lyskov lyskov merged commit 1236eb2 into RosettaCommons:master Apr 11, 2024
17 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