================
@@ -1005,6 +1013,16 @@ clangd accepts flags on the commandline, and in the
CLANGD_FLAGS environment var
}
Opts.UseDirtyHeaders = UseDirtyHeaders;
Opts.PreambleParseForwardingFunctions = PreambleParseForwardingFunctions;
+ if (ExperimentalModulesSupport &&
+ SkipPreambleBuild.getNumOccurrences() == 0) {
----------------
ChuanqiXu9 wrote:
This will disable it in the project wise. It is not precise. In a project using
modules that are possible to have TU which doesn't containing import at all. So
it is better to follow the approach in my PR to disable the optimization only
if the TU has an import.
https://github.com/llvm/llvm-project/pull/189284
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits