[clang] [clang][analyzer] Forward CTU-import failure conditions (PR #189064)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 04:48:37 PDT 2026
================
@@ -346,6 +347,8 @@ class CrossTranslationUnitContext {
};
ASTUnitStorage ASTStorage;
+
+ bool HasEmittedLoadThresholdRemark = false;
----------------
NagyDonat wrote:
> I don't see a way interacting with the ASTImporter (thus mutating our **own** AST) without having irrecoverable side-effects. This is by definition, can't be avoided.
I mostly agree, but I have a (wild, unrefined) idea that in the distant future perhaps we could replace the current "we import what we need" lazy AST import with 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).
https://github.com/llvm/llvm-project/pull/189064
More information about the cfe-commits
mailing list