Commit 6a1f8ef8 authored by Chris Cotter's avatar Chris Cotter Committed by Piotr Zegar
Browse files

[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
parent e1a9da3b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment