[clang] [LifetimeSafety] Support allocating/freeing functions annotated `ownership_takes`/`ownership_returns` (PR #213439)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 3 07:49:35 PDT 2026
NeKon69 wrote:
> I wonder what happens if a user-defined delete operator is annotated with these. Might be worth having some tests just to make sure the diagnostics make sense and we do not crash.
Good catch! I added test cases, along with 1 found inconsistency where `new` has a `ownership_takes` attribute.
https://github.com/llvm/llvm-project/pull/213439
More information about the cfe-commits
mailing list