[PATCH] D73762: [clang] New warning for for-loops where the iteration does not match the loop condition

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 31 06:35:32 PST 2020


Eugene.Zelenko added a comment.

Check should also consider cases like: i += 2; i = i + 2; i -= 2; i = i - 2. Probably same with multiplications, divisions and shifts.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73762/new/

https://reviews.llvm.org/D73762





More information about the cfe-commits mailing list