[clang] [LifetimeSafety] Add support for `new`/`delete` (PR #192504)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 04:40:07 PDT 2026


================
@@ -47,20 +47,22 @@ class AccessPath {
     ValueDecl,
     MaterializeTemporary,
     PlaceholderParam,
-    PlaceholderThis
+    PlaceholderThis,
+    HeapAllocation,
----------------
Xazax-hun wrote:

I new expression does not necessarily allocate on the heap (e.g., placement new into a stack local buffer). I wonder if we should have a separate access path for placement new in the future or if we should adjust the name here. No strong opinions. 

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


More information about the cfe-commits mailing list