We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9127f90 commit d628734Copy full SHA for d628734
lib/AST/Module.cpp
@@ -2461,6 +2461,12 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
2461
if (imports.isImportedBy(module, getParentModule()))
2462
return RestrictedImportKind::None;
2463
2464
+ // Special case the __ObjC module. This module is implicitly imported but
2465
+ // represents any clang module so we can consider it public.
2466
+ if (importKind == RestrictedImportKind::Implicit &&
2467
+ module->getName().str() == CLANG_HEADER_MODULE_NAME)
2468
+ return RestrictedImportKind::None;
2469
+
2470
return importKind;
2471
}
2472
0 commit comments