[PATCH] D48866: [clang-tidy] Add incorrect-pointer-cast checker
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 11 18:30:41 PST 2018
Eugene.Zelenko added inline comments.
================
Comment at: docs/ReleaseNotes.rst:139
+
+ Warns for cases when pointer is cast and the pointed to type is
+ incompatible with allocated memory area type. This may lead to access memory
----------------
Please wrap up to 80 characters. Same in documentation.
================
Comment at: docs/clang-tidy/checks/misc-incorrect-pointer-cast.rst:8
+allocated type.
+For example char vs integer, long vs char etc.
+Also warns for cases when the pointed to type layout is different from the
----------------
Integer -> int. Please highlight types with ``.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D48866/new/
https://reviews.llvm.org/D48866
More information about the cfe-commits
mailing list