[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 02:48:19 PDT 2019


Blackhart created this revision.
Blackhart created this object with edit policy "Only User: Blackhart (Thomas Manceau)".
Blackhart added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
Herald added a project: clang.

This patch will:

- replace all occurrence of the C "memcpy" function by "std::copy".
- reorder its arguments.
- insert the "algorithm" headers if needed.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D63324

Files:
  clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
  clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
  clang-tools-extra/clang-tidy/modernize/ReplaceMemcpyByStdCopy.cpp
  clang-tools-extra/clang-tidy/modernize/ReplaceMemcpyByStdCopy.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63324.204728.patch
Type: text/x-patch
Size: 8233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190614/a1904528/attachment.bin>


More information about the cfe-commits mailing list