[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)
Qiongsi Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 1 16:18:18 PDT 2025
================
@@ -453,8 +583,18 @@ bool DependencyScanningAction::runInvocation(
ScanInstance.getPreprocessorOpts().ImplicitPCHInclude, ScanInstance,
ScanInstance.getHeaderSearchOpts().PrebuiltModuleFiles,
PrebuiltModulesASTMap, ScanInstance.getDiagnostics(), StableDirs))
- return false;
+ return {};
+ return PrebuiltModulesASTMap;
+}
+
+void clang::tooling::dependencies::initializeModuleDepCollector(
----------------
qiongsiwu wrote:
Yeah this is a good idea! Thanks! The change I made has one difference from the above suggestion. I am keeping a copy of `DepOutOpts` in anticipation of reusing it when we share the compiler instance.
https://github.com/llvm/llvm-project/pull/161300
More information about the cfe-commits
mailing list