================
@@ -487,6 +504,21 @@ class LifetimeChecker {
       }
     }
   }
+
+  /// Extract expressions from the origin flow chain for diagnostic purposes.
+  ///
+  /// Given a chain of origins that shows how a loan propagates, this function
+  /// extracts the corresponding expressions for each origin. Origins that 
refer
+  /// to declarations (rather than expressions) are skipped.
+  llvm::SmallVector<const Expr *>
+  buildExprOrDeclChain(llvm::ArrayRef<OriginID> OriginFlowChain) {
----------------
NeKon69 wrote:

Maybe this should be renamed to `getExprChain` or something similar?

https://github.com/llvm/llvm-project/pull/199345
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to