[clang-tidy] Support begin/end free functions in modernize-loop-convert
The modernize-loop-convert check will now match iterator based loops
that call the free functions 'begin'/'end', as well as matching the
free function 'size' on containers.
Test plan: Added unit test cases matching free function calls on
containers, and a single negative test case for length() which is not
supported.
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D140760
GitOrigin-RevId: 6a1f8ef8a7aaefea80ef0bc7c6c462a96215b50e
7 files changed