[PATCH] D26167: [Clang-tidy] check for malloc, realloc and free calls
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 21 01:15:37 PST 2016
malcolm.parsons added a comment.
In https://reviews.llvm.org/D26167#622792, @malcolm.parsons wrote:
> In https://reviews.llvm.org/D26167#621942, @JonasToth wrote:
>
> > what do you think about configuration of the allocating functions? e.g. for aligned memory you must use OS-specific allocation functions.
> > should the check catch custom allocation functions as well?
>
>
> Sounds like a good idea to me.
I think this check should also warn about `strdup()`, `strndup()` and `wcsdup()`.
Repository:
rL LLVM
https://reviews.llvm.org/D26167
More information about the cfe-commits
mailing list