This is an archive of the discontinued LLVM Phabricator instance.

[clang] Prevent creation of new submodules in ASTWriter
ClosedPublic

Authored by benlangmuir on May 8 2023, 4:04 PM.

Details

Summary

Avoid inferring new submodules for headers in ASTWriter's collection of affecting modulemap files, since we don't want to pick up dependencies that didn't actually exist during parsing.

rdar://108681805

Diff Detail

Event Timeline

benlangmuir created this revision.May 8 2023, 4:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 4:04 PM
benlangmuir requested review of this revision.May 8 2023, 4:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 4:04 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

No test, because I haven't come up with a test case that wouldn't be invalidated by https://reviews.llvm.org/D103930. Let me know if you have any ideas.

This revision is now accepted and ready to land.May 9 2023, 12:53 PM
This revision was landed with ongoing or failed builds.May 9 2023, 1:03 PM
This revision was automatically updated to reflect the committed changes.