mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce ModuleDecl::isClangHeaderImportModule() convenience.
This commit is contained in:
@@ -2471,6 +2471,14 @@ bool ModuleDecl::getRequiredBystandersIfCrossImportOverlay(
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ModuleDecl::isClangHeaderImportModule() const {
|
||||
auto importer = getASTContext().getClangModuleLoader();
|
||||
if (!importer)
|
||||
return false;
|
||||
|
||||
return this == importer->getImportedHeaderModule();
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct OverlayFileContents {
|
||||
struct Module {
|
||||
|
||||
Reference in New Issue
Block a user