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 too-small-loop-variable check #15984

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

afuller-TT
Copy link
Contributor

@afuller-TT afuller-TT commented Dec 13, 2024

Ticket

#15123

Problem description

Loop variables should be capable of covering the range of values that are will be compared against. More info: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/too-small-loop-variable.html

What's changed

The issues fixed here should not have ever exhibited as bugs. However now that we're clean we can enforce the check globally which can save us from future bugs.

Checklist

@afuller-TT afuller-TT merged commit 3594cff into main Dec 13, 2024
122 checks passed
@afuller-TT afuller-TT deleted the afuller/enable-too-small-loop-var-check branch December 13, 2024 19:22
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.

3 participants