[clang] [analyzer][CTU] Macro expansions for imported translation units (PR #176126)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 07:09:33 PST 2026


================
@@ -1222,6 +1223,9 @@ bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps,
   if (!Act->BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0]))
     return true;
 
+  if (OnCompilerCreated)
+    OnCompilerCreated(*Clang);
----------------
steakhal wrote:

This is a somewhat controversial hunk. I am not the right person to approve or deny this specific hunk.
I'll ask some folks for consensus about this.
Passing this callback around feels also somewhat invasive.

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


More information about the cfe-commits mailing list