Issue |
140659
|
Summary |
clang-tidy: bugprone-multi-level-implicit-pointer-conversion should ignore malloc/calloc/realloc/free
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
seanm
|
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 actual `void*`
- free takes `void*`, but often one passes some specific type, not an actual `void*`
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?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs