Skip to content

Commit 2628a65

Browse files
committed
Let consumers decide whether to handle named module scan results
1 parent 2cde5be commit 2628a65

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,8 @@ void ModuleDepCollectorPP::EndOfMainFile() {
714714

715715
MDC.Consumer.handleDependencyOutputOpts(*MDC.Opts);
716716

717-
if (const auto Format = MDC.Service.getFormat();
718-
Format == ScanningOutputFormat::P1689 ||
719-
Format == ScanningOutputFormat::Full)
720-
MDC.Consumer.handleProvidedAndRequiredStdCXXModules(
721-
MDC.ProvidedStdCXXModule, MDC.RequiredStdCXXModules);
717+
MDC.Consumer.handleProvidedAndRequiredStdCXXModules(
718+
MDC.ProvidedStdCXXModule, MDC.RequiredStdCXXModules);
722719

723720
for (auto &&I : MDC.ModularDeps)
724721
MDC.Consumer.handleModuleDependency(*I.second);

0 commit comments

Comments
 (0)