[llvm-branch-commits] [clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)
Gábor Horváth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 17 06:57:28 PDT 2025
================
@@ -807,17 +838,27 @@ class LoanPropagationAnalysis
// - Modify origin liveness analysis to answer `bool isLive(Origin O, Point P)`
// - Using the above three to perform the final error reporting.
// ========================================================================= //
-} // anonymous namespace
-void runLifetimeSafetyAnalysis(const DeclContext &DC, const CFG &Cfg,
- AnalysisDeclContext &AC) {
+// ========================================================================= //
+// LifetimeSafetyAnalysis Class Implementation
+// ========================================================================= //
+
+LifetimeSafetyAnalysis::~LifetimeSafetyAnalysis() = default;
----------------
Xazax-hun wrote:
I think it is usually better to have defaulted special member functions in the header.
https://github.com/llvm/llvm-project/pull/149158
More information about the llvm-branch-commits
mailing list