Merge remote-tracking branch 'origin' into import-as-member

This commit is contained in:
Michael Ilseman
2016-03-24 11:37:36 -07:00
86 changed files with 1331 additions and 426 deletions

View File

@@ -206,6 +206,16 @@ static ClangNode extensionGetClangNode(ExtensionDecl *ext) {
return members.front()->getClangNode();
}
Optional<StringRef>
swift::ide::findGroupNameForUSR(ModuleDecl *M, StringRef USR) {
for (auto File : M->getFiles()) {
if (auto Name = File->getGroupNameByUSR(USR)) {
return Name;
}
}
return None;
}
void swift::ide::printSubmoduleInterface(
Module *M,
ArrayRef<StringRef> FullModuleName,