After creating D55574, clang-tidy was of course fresh in my mind and I noticed another common pattern that can be improved.
https://clang.llvm.org/extra/clang-tidy/checks/readability-simplify-boolean-expr.html
Command used:
run-clang-tidy.py -checks='-*,readability-simplify-boolean-expr' -format -fix $PWD
this probably should be a while loop, or the initializer should go in the for.