[clang] [Clang] Improve diagnostics for 'placement new' with const storage argument (PR #144270)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 11:19:17 PDT 2025


vbvictor wrote:

No problem, take your time! Feel better soon.

Regarding this comment:
> should probably be earlier - this is inside an array of object

My logic is still placed inside that `if (object || pointer)`, should I try to look for an earlier place in `resolveAllocationOverloadInterior` or some even previous functions? Note that I've added comprehensive tests to cover all cases.


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


More information about the cfe-commits mailing list