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]...; }
Paths
| Differential D97940
[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 TimelineThis 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 Closed by commit rGa85eb11129ce: [clang-tidy] Extend LoopConvert on array with `!=` comparison (authored by njames93). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 328240 clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-basic.cpp
|