This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Extend LoopConvert on array with `!=` comparison
ClosedPublic

Authored by njames93 on Mar 4 2021, 5:39 AM.

Details

Summary

Enables transforming loops of the form:

for (int i = 0; I != container.size(); ++I) { container[I]...; }
for (int i = 0; I != N; ++I) { FixedArrSizeN[I]...; }

Diff Detail

Event Timeline

njames93 created this revision.Mar 4 2021, 5:39 AM
njames93 requested review of this revision.Mar 4 2021, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2021, 5:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Mar 4 2021, 7:42 AM
This revision was landed with ongoing or failed builds.Mar 4 2021, 10:59 AM
This revision was automatically updated to reflect the committed changes.