[PATCH] D32700: [clang-tidy] Add misc-suspicious-memset-usage check.
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 1 10:33:21 PDT 2017
Eugene.Zelenko added a comment.
Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).
================
Comment at: docs/clang-tidy/checks/misc-suspicious-memset-usage.rst:6
+
+This check finds memset calls with potential mistakes in their arguments.
+Considering the function as ``void* memset(void* destination, int fill_value,
----------------
Please enclose memset on `` and add ().
================
Comment at: docs/clang-tidy/checks/misc-suspicious-memset-usage.rst:25
+
+If the class containing the memset call has a virtual function, using
+memset on the ``this`` pointer might corrupt the virtual method table.
----------------
Please enclose memset on `` and add ().
https://reviews.llvm.org/D32700
More information about the cfe-commits
mailing list