Open tiagomacarios opened 1 day ago
@llvm/issue-subscribers-clang-static-analyzer
Author: Tiago (tiagomacarios)
Yea, the checker should have checked if the pointer is null and ignore it if its null. I guess, there are other reasons too why this checker is alpha (aka. experimental).
Thanks for the report.
The following code will trigger clang-analyzer-alpha.cplusplus.DeleteWithNonVirtualDtor https://godbolt.org/z/7jPa8dr5W