This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Remove `ModuleDeps::ImportedByMainFile`
ClosedPublic

Authored by jansvoboda11 on Jul 28 2023, 11:45 AM.

Details

Summary

This information is already exposed via TranslationUnitDeps::ClangModuleDeps on the DependencyScanningTool level, and this patch also adds it on the DependencyScanningWorker level via DependencyConsumer::handleDirectModuleDependency().

Besides being redundant, this bit of information is misleading for clients that share single ModuleDeps instance between multiple TUs (by using the AlreadySeen set). The module can be imported directly in some TUs but transitively in others.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Jul 28 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 11:45 AM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Jul 28 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 11:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.Jul 28 2023, 12:02 PM

This flag was always weird to me, thanks for cleaning it up.

This revision is now accepted and ready to land.Jul 28 2023, 12:02 PM
This revision was landed with ongoing or failed builds.Jul 28 2023, 12:05 PM
This revision was automatically updated to reflect the committed changes.