This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Account for transitive spurious dependencies
ClosedPublic

Authored by jansvoboda11 on Jan 19 2023, 4:05 PM.

Details

Summary

In D106100, we started guarding against spurious dependencies on modules that ended up being textual includes and thus didn't have any AST file associated. That patch accounted only for direct dependencies. There's a way how to get spurious dependencies for modules that are transitive. This patch guards against that scenario and adds a test case.

(Note that since D142167, we don't allow @import FW_Private with -fmodule-name=FW anymore. However, that check lives in sema, which the scanner doesn't run. Being defensive in this patch therefore still makes sense.)

rdar://104324602

Diff Detail

Event Timeline

jansvoboda11 created this revision.Jan 19 2023, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 4:05 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Jan 19 2023, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 4:05 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.Jan 20 2023, 10:55 AM
This revision is now accepted and ready to land.Jan 20 2023, 10:55 AM

Fix test on Windows

jansvoboda11 edited the summary of this revision. (Show Details)Jan 24 2023, 9:48 AM
This revision was landed with ongoing or failed builds.Jan 24 2023, 9:49 AM
This revision was automatically updated to reflect the committed changes.