[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 06:56:27 PST 2025


================
@@ -52,41 +62,118 @@ struct Origin {
   }
 };
 
-/// Manages the creation, storage, and retrieval of origins for pointer-like
-/// variables and expressions.
-class OriginManager {
+/// A list of origins representing levels of indirection for pointer-like types.
----------------
usx95 wrote:

Not immediately but I had some plans for such special cases in the future. The pre-existing analysis calls this Container of pointers using a heuristic where an `Owner` class is instantiated with a pointer type.

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


More information about the cfe-commits mailing list