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

Enable modernize-use-integer-sign-comparison check #4581

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

nlohmann
Copy link
Owner

@nlohmann nlohmann commented Jan 1, 2025

Close #4559 after merging #4577.

Background: A new version of Clang-Tidy added a modernize-use-integer-sign-comparison check which failed on the code - mostly, because conversions like static_cast<std::size_t>(-1). These have been replaced with std::numeric_limits<std::size_t>::max() in #4577. This PR en-enabled the Clang-Tidy check and fixes some test files.

@github-actions github-actions bot added the S label Jan 1, 2025
@coveralls
Copy link

coveralls commented Jan 1, 2025

Coverage Status

coverage: 99.639%. remained the same
when pulling bf50bb6 on modernize-use-integer-sign-comparison
into 4f64d8d on develop.

@nlohmann nlohmann force-pushed the modernize-use-integer-sign-comparison branch from d9c7322 to bf50bb6 Compare January 1, 2025 18:39
@github-actions github-actions bot added M tests and removed S labels Jan 1, 2025
@nlohmann nlohmann added this to the Release 3.11.4 milestone Jan 1, 2025
@nlohmann nlohmann added the review needed It would be great if someone could review the proposed changes. label Jan 1, 2025
@nlohmann nlohmann merged commit f038ac4 into develop Jan 2, 2025
124 checks passed
@nlohmann nlohmann deleted the modernize-use-integer-sign-comparison branch January 2, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M review needed It would be great if someone could review the proposed changes. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modernize integer comparison
3 participants