Commit Graph

2 Commits

Author SHA1 Message Date
Alexis Laferrière
e2215321dd Sema: track use in API of declaring and bystanders for cross-import overlay
Cross-import overlays are imported automatically if the declaring
module and the bystanders modules are also imported. In theory,
one could import the declaring module and bystanders without using
them and use only the overlay in API. Let’s make sure we track these
indirect uses to avoid superfluous warning.

rdar://129779460
2024-06-13 10:55:11 -07:00
Alexis Laferrière
17b8e86a6d Sema: Support newer import restrictions with cross-import overlays
Add support for access-level on imports and `@_spiOnly imports` to cross
import overlays. The overlay inherits the most restrictive import
access-level of the declaring module and the bystander module.

rdar://129606112
2024-06-12 11:08:49 -07:00