[PATCH] D35051: [clang-tidy] Add misc-undefined-memory-manipulation check.
Reka Kovacs via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 6 05:50:21 PDT 2017
rnkovacs created this revision.
rnkovacs added a project: clang-tools-extra.
Herald added subscribers: whisperity, JDevlieghere, mgorny.
Finds calls of memory manipulation functions `memset()`, `memcpy()` and `memmove()` on not TriviallyCopyable objects resulting in undefined behavior.
Related discussion <https://reviews.llvm.org/D32700>.
https://reviews.llvm.org/D35051
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/MiscTidyModule.cpp
clang-tidy/misc/UndefinedMemoryManipulationCheck.cpp
clang-tidy/misc/UndefinedMemoryManipulationCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/misc-undefined-memory-manipulation.rst
test/clang-tidy/misc-undefined-memory-manipulation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35051.105405.patch
Type: text/x-patch
Size: 13801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170706/2e4bf92c/attachment.bin>
More information about the cfe-commits
mailing list