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 cbfa4b7 commit 82e9380Copy full SHA for 82e9380
lib/AST/Module.cpp
@@ -2442,6 +2442,9 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
2442
auto &imports = getASTContext().getImportCache();
2443
RestrictedImportKind importKind = RestrictedImportKind::Implicit;
2444
2445
+ if (module->getName().str() == CLANG_HEADER_MODULE_NAME)
2446
+ return RestrictedImportKind::None;
2447
+
2448
// Look at the imports of this source file.
2449
for (auto &desc : *Imports) {
2450
// Ignore implementation-only imports.
0 commit comments