[IDE] Don't show "import SwiftShims" in the stdlib interface.

Swift SVN r17344
This commit is contained in:
Argyrios Kyrtzidis
2014-05-04 00:26:34 +00:00
parent 86df649f90
commit 9151996c9f

View File

@@ -326,9 +326,12 @@ void swift::ide::printSubmoduleInterface(
return false;
};
for (auto *D : ImportDecls)
PrintDecl(D);
Printer << "\n";
// Imports from the stdlib are internal details that don't need to be exposed.
if (!M->isStdlibModule()) {
for (auto *D : ImportDecls)
PrintDecl(D);
Printer << "\n";
}
{
using ModuleAndName = std::pair<const clang::Module *, std::string>;