[PATCH] D22725: [clang-tidy] Add check 'misc-replace-memcpy'

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 23 10:18:34 PDT 2016


aaron.ballman added a comment.

> Using std::copy opens up the possibility of type-aware optimizations which are not possible with memcpy.


To my knowledge, those type-aware optimizations are for transforming copies involving trivially-copyable types into calls to memcpy(). What other optimizations does this check enable?


Repository:
  rL LLVM

https://reviews.llvm.org/D22725





More information about the cfe-commits mailing list