LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 22209 - Replace memcpy with std::copy
Summary: Replace memcpy with std::copy
Status: NEW
Alias: None
Product: clang-tools-extra
Classification: Unclassified
Component: clang-tidy (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P enhancement
Assignee: Thomas Manceau
URL:
Keywords: beginner
Depends on:
Blocks:
 
Reported: 2015-01-12 11:32 PST by Richard
Modified: 2019-06-14 02:54 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments
ReplaceMemcpyByStdCopy (14.47 KB, patch)
2019-06-14 02:54 PDT, Thomas Manceau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2015-01-12 11:32:50 PST
Provide a transform that replaces memcpy with std::copy.
Comment 1 Thomas Manceau 2019-06-14 02:54:49 PDT
Created attachment 22101 [details]
ReplaceMemcpyByStdCopy

Hi,

I made a patch addressing this issue.

You can have a look to it at: https://reviews.llvm.org/D63324