[clang] [clang][DependencyScanning] Reset options generated for named module compilations. (PR #161486)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 1 09:54:27 PDT 2025


================
@@ -263,6 +263,10 @@ makeCommonInvocationForModuleBuild(CompilerInvocation CI) {
   // units.
   CI.getFrontendOpts().Inputs.clear();
   CI.getFrontendOpts().OutputFile.clear();
+  CI.getFrontendOpts().GenReducedBMI = false;
+  CI.getFrontendOpts().ModuleOutputPath.clear();
+  CI.getHeaderSearchOpts().ModulesSkipHeaderSearchPaths = false;
+  CI.getHeaderSearchOpts().ModulesSkipDiagnosticOptions = false;
----------------
jansvoboda11 wrote:

Should we reset these when scanning too? At least for the Clang modules part of the scan.

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


More information about the cfe-commits mailing list