[clang-tools-extra] [clang-tidy] cppcoreguidelines-owning-memory: support new expressions through implicit casts (PR #189544)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 09:07:31 PDT 2026


vbvictor wrote:

But I think we can't close that issue yet.
We didn't fix the original case
```cpp
#include <string>

void Foo()
{
	std::string* s = new std::string();               // A
	std::string* t = new std::string("abc");      // B
}
```

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


More information about the cfe-commits mailing list