[PATCH] D97940: [clang-tidy] Extend LoopConvert on array with `!=` comparison

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 4 05:39:34 PST 2021


njames93 created this revision.
njames93 added reviewers: aaron.ballman, alexfh.
Herald added a subscriber: xazax.hun.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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]...; }


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97940

Files:
  clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-basic.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97940.328139.patch
Type: text/x-patch
Size: 6706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210304/5082ed31/attachment.bin>


More information about the cfe-commits mailing list