[clang] [LifetimeSafety][NFC] Refactor OriginList to OriginNode tree (PR #194797)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 06:33:55 PDT 2026


================
@@ -92,30 +92,42 @@ struct Origin {
 ///
 /// The list structure enables the analysis to track how loans flow through
 /// different levels of indirection when assignments and dereferences occur.
-class OriginList {
+///
+/// TODO: Currently list-shaped (each node has at most one pointee child).
+/// Will become tree-shaped once field children are added to support
----------------
Xazax-hun wrote:

We might have trees as a result of processing named lifetime annotations in the future. 

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


More information about the cfe-commits mailing list