[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 18 20:52:06 PST 2025


================
@@ -82,6 +89,15 @@ class LifetimeSafetyAnalysis {
   std::unique_ptr<LoanPropagationAnalysis> LoanPropagation;
 };
 } // namespace internal
+
+// utility function to print missing origin stats.
+void PrintStats(const LifetimeSafetyStats &Stats);
+
+/// The main entry point for the analysis.
+void runLifetimeSafetyAnalysis(AnalysisDeclContext &AC,
+                               LifetimeSafetyReporter *Reporter,
+                               LifetimeSafetyStats &Stats, bool CollectStats);
+
----------------
usx95 wrote:

please keep the public/non-internal functions to the top and before the internal namespace.

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


More information about the cfe-commits mailing list