[clang] [clang][analyzer] Forward CTU-import failure conditions (PR #189064)

Arseniy Zaostrovnykh via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 04:56:05 PDT 2026


================
@@ -346,6 +347,8 @@ class CrossTranslationUnitContext {
   };
 
   ASTUnitStorage ASTStorage;
+
+  bool HasEmittedLoadThresholdRemark = false;
----------------
necto wrote:

> an eager process where the analyzer imports the definitions that are frequently called, not to large and heuristically "interesting" (based on some rough preliminary whole program analysis)

This could also be done from the "outside" before invoking clang, by sifting the defmap file to preserve only the definitions that should be loaded unconditionally.

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


More information about the cfe-commits mailing list