3 Commits

Author SHA1 Message Date
Nathan James
77b2c68167
[clang-tidy] Add support for std::rotate(_copy) and inplace_merge to modernize-use-ranges (#99057)
These algorithms take 3 iterators for the range and we are only
interested in the first and last iterator argument. The ranges versions
of these take a range and an iterator(defined to be inside the range) so
the transformation is pretty similar `algo(I.begin, other, I.end,...)`
-> `ranges::algo(I, other,...)`
2024-07-17 16:50:24 +02:00
Nathan James
87ca6386f9
[clang-tidy] Allow specifying pipe syntax for use-ranges checks (#98696)
Add `UseReversePipe` option to (boost|modernize)-use-ranges checks. This
controls whether to create a reverse view using function syntax
(`reverse(Range)`) or pipe syntax (`Range | reverse`)
2024-07-15 21:22:15 +02:00
Nathan James
1038db6f02
[clang-tidy] Add checks to convert std library iterator algorithms into c++20 or boost ranges (#97764)
Added modernize-use-ranges
Added boost-use-ranges
2024-07-08 20:40:52 +02:00