[PATCH] D35051: [clang-tidy] Add bugprone-undefined-memory-manipulation check.

Reka Kovacs via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 12 08:59:45 PDT 2017


rnkovacs marked 2 inline comments as done.
rnkovacs added inline comments.


================
Comment at: clang-tidy/bugprone/UndefinedMemoryManipulationCheck.cpp:39
+  // Check whether source object is not TriviallyCopyable.
+  // Only applicable to memcpy() and memmove().
+  Finder->addMatcher(
----------------
alexfh wrote:
> What about `memset`?
`memset` has a bit different signature than the other two. It has a fill value as its second argument instead of a source object.


https://reviews.llvm.org/D35051





More information about the cfe-commits mailing list