Skip to content

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

Merged
nlohmann merged 1 commit intodevelopfrom
modernize-use-integer-sign-comparison
Jan 2, 2025
Merged

Enable modernize-use-integer-sign-comparison check#4581
nlohmann merged 1 commit intodevelopfrom
modernize-use-integer-sign-comparison

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.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@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
@nlohmann nlohmann deleted the modernize-use-integer-sign-comparison branch January 2, 2025 12:24
slowriot pushed a commit to slowriot/json that referenced this pull request Jan 10, 2025
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
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