forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
7 changed files
with
376 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.