[clang-tools-extra] [clang-tidy] Fix false positive in modernize-make-unique (PR #229802)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 17 07:39:41 PDT 2026
serge-sans-paille wrote:
> Can we fix the same behaviour for public deleted constructors?
>
> Also I think we should have a test like:
>
> ```c++
> using Alias = DerivedWithPrivateDestructor;
> p.reset(new Alias);
> ```
Done
> and also test for `unique_ptr` constructor matcher
That's out of scope for this bugfix, but good candidate for a follow-up :-)
https://github.com/llvm/llvm-project/pull/229802
More information about the cfe-commits
mailing list