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

clang-tidy: clang-analyzer-core.DivideZero #7765

Conversation

derekargueta
Copy link
Member

Description: clang-analyzer-core.DivideZero checks all possible codepaths for division by zero, for which we had one case. Fixed the existing case and enabled as an error to prevent regressions.
Risk Level: low
Testing: existing
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Derek Argueta dereka@pinterest.com

Signed-off-by: Derek Argueta <dereka@pinterest.com>
} // namespace Envoy
Copy link
Member Author

Choose a reason for hiding this comment

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

an incidental change picked up by my vim settings, but leaving it in since we probably want all files to end with newline.

Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to make the formatter deal with this...

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thank you!

} // namespace Envoy
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to make the formatter deal with this...

@mattklein123 mattklein123 merged commit e1a33da into envoyproxy:master Jul 30, 2019
@derekargueta derekargueta deleted the dereka/clang-tidy-clang-analyzer-divide-zero branch October 8, 2019 09:15
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