[PATCH] D26167: [Clang-tidy] check for malloc, realloc and free calls
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 13 01:49:38 PST 2016
JonasToth added a comment.
I did run clang-tidy with $(./run-clang-tidy.py -checks=-*,cppcoreguidelines-no-malloc). The resulting output is in the appended file.
Since all warnings came from header files (llvms custom containers?) there are always the same warnings for all source files.
Every function (calloc, malloc, realloc and free) was seen, i hope the output is sufficient.
Whats not nice is, that there is no underlining (in test neither), but i could not find out what is wrong, since i supply a SourceRange in the diag()-call.
F2703383: tidy_output_no_malloc.txt <https://reviews.llvm.org/F2703383>
More information about the cfe-commits