[SymbolGraph] Pick best synthesized member when possible

A type can have multiple overloads available from different protocols from
which it inherits. Ask the type checker to pick the best one where possible.

rdar://60193198
This commit is contained in:
Ashley Garland
2020-04-24 15:19:51 -07:00
parent f7b1cd477a
commit d5aa0d0543
4 changed files with 82 additions and 7 deletions

View File

@@ -239,6 +239,9 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args, const char *Argv
return EXIT_FAILURE;
}
const auto &MainFile = M->getMainFile(FileUnitKind::SerializedAST);
llvm::errs() << "Emitting symbol graph for module file: " << MainFile.getModuleDefiningPath() << '\n';
return symbolgraphgen::emitSymbolGraphForModule(M,
Options);
}