[clang] [analyzer] Add cplusplus.DestroyedAsWrongType checker (PR #237801)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 16 10:51:54 PST 2026
================
@@ -386,6 +392,26 @@ void DynamicTypePropagation::checkPostCall(const CallEvent &Call,
return;
}
}
+
+ if (const auto *Ctor = dyn_cast<CXXInheritedConstructorCall>(&Call)) {
----------------
NagyDonat wrote:
Together with what I suggested above, please add a few lines to summarize the goals of this block. This code deals with tricky details of the C++ language and the data model of the analyzer, so (at least for me) it is difficult to understand without comments.
https://github.com/llvm/llvm-project/pull/237801
More information about the cfe-commits
mailing list