Merge pull request #31227 from nathawes/cross-import-tooling-fixes

[IDE][AST] Handle frameworks with traditional overlays where the underlying module declares cross imports in sourcekit
This commit is contained in:
Nathan Hawes
2020-04-23 19:28:28 -07:00
committed by GitHub
16 changed files with 845 additions and 31 deletions

View File

@@ -1218,6 +1218,10 @@ StringRef SerializedASTFile::getTargetTriple() const {
return File.getTargetTriple();
}
ModuleDecl *SerializedASTFile::getUnderlyingModuleIfOverlay() const {
return File.getUnderlyingModule();
}
const clang::Module *SerializedASTFile::getUnderlyingClangModule() const {
if (auto *UnderlyingModule = File.getUnderlyingModule())
return UnderlyingModule->findUnderlyingClangModule();