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.
2 parents 2d87478 + 82e9380 commit 35ff605Copy full SHA for 35ff605
lib/AST/Module.cpp
@@ -2467,6 +2467,9 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
2467
auto &imports = getASTContext().getImportCache();
2468
RestrictedImportKind importKind = RestrictedImportKind::Implicit;
2469
2470
+ if (module->getName().str() == CLANG_HEADER_MODULE_NAME)
2471
+ return RestrictedImportKind::None;
2472
+
2473
// Look at the imports of this source file.
2474
for (auto &desc : *Imports) {
2475
// Ignore implementation-only imports.
0 commit comments