[PATCH] D63324: [clang-tidy] Replace memcpy by std::copy
Thomas Manceau via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 14 08:27:58 PDT 2019
Blackhart added a comment.
In D63324#1543609 <https://reviews.llvm.org/D63324#1543609>, @lebedev.ri wrote:
> In D63324#1543607 <https://reviews.llvm.org/D63324#1543607>, @Blackhart wrote:
>
> > Modernize memcpy only if C++20 is enabled
>
>
> ... why?
> This is also missing documentation,releasenotes changes.
According with the C++ reference, std::copy is only available since C++20.
There is another std::copy signature available since C++17, but it needs an extra parameter. I can implement it also.
https://en.cppreference.com/w/cpp/algorithm/copy
I'm working on the unit tests and I'll make documentation/releasenotes after that.
Thanks for reviewing @lebedev.ri ;)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63324/new/
https://reviews.llvm.org/D63324
More information about the cfe-commits
mailing list