mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Force considering the __ObjC module as imported publicly
This commit is contained in:
@@ -2442,6 +2442,9 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
|
||||
auto &imports = getASTContext().getImportCache();
|
||||
RestrictedImportKind importKind = RestrictedImportKind::Implicit;
|
||||
|
||||
if (module->getName().str() == CLANG_HEADER_MODULE_NAME)
|
||||
return RestrictedImportKind::None;
|
||||
|
||||
// Look at the imports of this source file.
|
||||
for (auto &desc : *Imports) {
|
||||
// Ignore implementation-only imports.
|
||||
|
||||
Reference in New Issue
Block a user