[clang] Run analysis in post-order of the call-graph #172862 (PR #174178)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 2 02:00:03 PST 2026


================
@@ -2969,6 +3009,46 @@ void clang::sema::AnalysisBasedWarnings::IssueWarnings(
     CallableVisitor(CallAnalyzers, TU->getOwningModule())
         .TraverseTranslationUnitDecl(TU);
   }
+
+  if (S.getLangOpts().EnableLifetimeSafety && S.getLangOpts().CPlusPlus &&
+      S.getLangOpts().EnableLifetimeSafetyInferencePostOrder) {
+    llvm::SmallVector<const FunctionDecl *, 64> AllFunctions;
----------------
Xazax-hun wrote:

Do you need the `llvm::` qualifier here?

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


More information about the cfe-commits mailing list