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

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Another thing is that at this point I'd already create a `bugprone` module (if nobody has a better name) and place the check there (together with the other memset-related check). https://reviews.llvm.org/D35051 ___

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

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. As usual, please run the check at least on LLVM+Clang and include a brief summary of results into the description of the patch. https://reviews.llvm.org/D35051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

2017-07-06 Thread Reka Kovacs via Phabricator via cfe-commits
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