[clang] [analyzer] Add cplusplus.DestroyedAsWrongType checker (PR #237801)

Benedek Kaibas via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 28 13:01:57 PST 2026


benedekaibas wrote:

> I understand the concern about the size. Would it help if I split out the DynamicTypePropagation changes into a separate PR? They are useful on their own for devirtualization, and the checker would then be a smaller follow-up on top of them

Would it help to open an RFC for it where you have a proof of concept (something like this PR) on discourse? I think for something like this where we add a new checker it would be nice to discuss it before we start implementing. Personally I think it is easier when we can see your thinking on this checker and what considerations you have taken to make a given choice.

I like the idea of having smaller stacked PRs that build up the checker. That would definitely help. I think it is just easier though to read an RFC and then what maintainers, other folks think about it _and_ then see the PR out of that conversation (this is just me personal feeling).

Don't get me wrong I have _nothing_ against the PR and I am glad to review it because I can learn a lot from it, but I have to admit that I can only move very slowly because I want to understand everything behind this PR. Let's wait what the maintainers say since their time is limited, so we should consider their preferences. 


https://github.com/llvm/llvm-project/pull/237801


More information about the cfe-commits mailing list