Open
Description
clang-tidy's bugprone-multi-level-implicit-pointer-conversion
gives 48 warnings in my codebase. None are actual bugs. All but 2 of them are warning about malloc/calloc/realloc/reallocf/free.
Seems to me that warnings on these functions is not often going to be useful:
- malloc returns
void*
, but usually you're not assigning to an actualvoid*
- free takes
void*
, but often one passes some specific type, not an actualvoid*
Might it be appropriate to not issue such warnings when these function are involved?
Or perhaps add on option allowing such functions to be listed for suppression?