This is an archive of the discontinued LLVM Phabricator instance.

[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
variable would still be considered valid and equal to
base type, because check didnt compare size of bitfield.

Fixes issue introduced in: D142587

Diff Detail

Event Timeline

PiotrZSL created this revision.Mar 13 2023, 10:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
PiotrZSL requested review of this revision.Mar 13 2023, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 10:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Henric added a subscriber: Henric.Mar 14 2023, 1:18 AM
carlosgalvezp accepted this revision.Mar 18 2023, 3:10 AM
This revision is now accepted and ready to land.Mar 18 2023, 3:10 AM