Flags and replaces calls to standard library algorithms that could be converted to use the std::ranges algorithms introduced in c++20.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
great to see such a check!
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp | ||
---|---|---|
78 | i would at rbegin() and the likes, too. |
clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp | ||
---|---|---|
78 | How should rbegin be handled |
Added IncludeInserter to include the <ranges> header.
Added support for reverse iteration controlled by config.
Added support for begin/end calls via pointers.
Made the begin/end call matcher more robust if other checks want to use it down the line.
Moved the std lib parts out of the test case into header files.
i would at rbegin() and the likes, too.