[all-commits] [llvm/llvm-project] 77b2c6: [clang-tidy] Add support for std::rotate(_copy) an...
Nathan James via All-commits
all-commits at lists.llvm.org
Wed Jul 17 07:50:46 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 77b2c681677db02552475426f0f7cf2c009ff98d
https://github.com/llvm/llvm-project/commit/77b2c681677db02552475426f0f7cf2c009ff98d
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp
M clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-ranges/fake_std.h
M clang-tools-extra/test/clang-tidy/checkers/modernize/use-ranges.cpp
Log Message:
-----------
[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,...)`
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list