Ignore transitive ObjC imports when cross-importing

This behavior change reduces the chance of unexpected and unwanted cross-imports being performed.

Fixes rdar://problem/60554019.
This commit is contained in:
Brent Royal-Gordon
2020-04-05 16:27:57 -07:00
parent 1d423e43c0
commit 121fa9a058
12 changed files with 72 additions and 23 deletions

View File

@@ -448,7 +448,7 @@ public:
/// Retrieve the top-level module. If this module is already top-level, this
/// returns itself. If this is a submodule such as \c Foo.Bar.Baz, this
/// returns the module \c Foo.
ModuleDecl *getTopLevelModule();
ModuleDecl *getTopLevelModule(bool overlay = false);
bool isResilient() const {
return getResilienceStrategy() != ResilienceStrategy::Default;