[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 23 11:14:01 PDT 2025


================
@@ -810,21 +787,19 @@ llvm::Error CompilerInstanceWithContext::computeDependencies(
     StringRef ModuleName, DependencyConsumer &Consumer,
     DependencyActionController &Controller) {
   auto &CI = *CIPtr;
-  CompilerInvocation Inv(*Invocation);
+  CompilerInvocation Inv(*OriginalInvocation);
 
   CI.clearDependencyCollectors();
   auto MDC = initializeScanInstanceDependencyCollector(
       CI, std::make_unique<DependencyOutputOptions>(*OutputOpts), CWD, Consumer,
-      Worker.Service, *Invocation, Controller, PrebuiltModuleASTMap,
-      StableDirs);
+      Worker.Service, Inv, Controller, PrebuiltModuleASTMap, StableDirs);
----------------
qiongsiwu wrote:

Good point. Revised! 

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


More information about the cfe-commits mailing list