[all-commits] [llvm/llvm-project] a85eb1: [clang-tidy] Extend LoopConvert on array with `!=`...
Nathan James via All-commits
all-commits at lists.llvm.org
Thu Mar 4 10:59:23 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a85eb11129ce941e91b5bc3b188e469aaca4425f
https://github.com/llvm/llvm-project/commit/a85eb11129ce941e91b5bc3b188e469aaca4425f
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2021-03-04 (Thu, 04 Mar 2021)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-basic.cpp
Log Message:
-----------
[clang-tidy] Extend LoopConvert on array with `!=` comparison
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]...; }
```
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D97940
More information about the All-commits
mailing list