Correct issue when incorrectly matched bitfield loop
variable would still be considered valid and equal to
base type, because check didnt compare size of bitfield.
Fixes issue introduced in: D142587
Paths
| Differential D145958
[clang-tidy] Fix minor bug in bugprone-too-small-loop-variable ClosedPublic Authored by PiotrZSL on Mar 13 2023, 10:07 AM.
Details Summary Correct issue when incorrectly matched bitfield loop Fixes issue introduced in: D142587
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 18 2023, 3:10 AM Closed by commit rG113f0190dd38: [clang-tidy] Fix minor bug in bugprone-too-small-loop-variable (authored by PiotrZSL). · Explain WhyMar 18 2023, 4:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 506285 clang-tools-extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/too-small-loop-variable.cpp
|