[clang] [LifetimeSafety] Issue 164963 detect manual construction/destruction (PR #192504)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 11:32:01 PDT 2026
NeKon69 wrote:
What I am a bit stuck with right now is that for `CXXNewExpr` and `CXXDeleteExpr` `OriginList`s I don't actually get inner origins referring to the storage. Thus, code like this still isn't reported (because `CXXDeleteExpr` visitor doesn't emit any facts):
```
void test() {
int *P = new int;
delete P;
(void)*P;
}
```
I think I'll try looking at how other visitor functions handle this, although I am not sure yet where to go with this.
https://github.com/llvm/llvm-project/pull/192504
More information about the cfe-commits
mailing list