[PATCH] D26167: [Clang-tidy] check for malloc, realloc and free calls
Jonas Devlieghere via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 14 01:39:15 PST 2016
JDevlieghere added a comment.
In https://reviews.llvm.org/D26167#621928, @malcolm.parsons wrote:
> I tried this check on my company's codebase.
> It misses cases where malloc is used through a function pointer.
> Should clang-tidy warn about making a function pointer to these functions?
Sounds like a good idea to me. I can't really imagine a scenario where you'd want to enable this check and not be warned about it.
Repository:
rL LLVM
https://reviews.llvm.org/D26167
More information about the cfe-commits
mailing list