[PATCH] D48866: [clang-tidy] Add incorrect-pointer-cast checker
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 11 18:40:46 PST 2018
hgabii marked 4 inline comments as done.
hgabii 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
----------------
Eugene.Zelenko wrote:
> Please wrap up to 80 characters. Same in documentation.
Lines added by me are not longer than 80 characters.
It is also true for the 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
----------------
Eugene.Zelenko wrote:
> Integer -> int. Please highlight types with ``.
Done.
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