swift-api-digester: use qualified type names for generic signatures

There could be cases where several modules having types of the same name.
Using fully qualified names could help us detect changing from using
one of them to another.

The commit also updates the existing ABI/API baselines to incorporate such change.
This commit is contained in:
Xi Ge
2019-08-13 17:43:49 -07:00
parent dfcfdf726b
commit 4b8abdf852
10 changed files with 4966 additions and 3430 deletions

View File

@@ -1091,9 +1091,8 @@ StringRef printGenericSignature(SDKContext &Ctx, ArrayRef<Requirement> AllReqs)
OS << "<";
bool First = true;
PrintOptions Opts = PrintOptions::printInterface();
// We always print unqualifed type names to avoid false positives introduced
// by the heuristics working differently.
Opts.FullyQualifiedTypesIfAmbiguous = false;
// We should always print fully qualified type names here
Opts.FullyQualifiedTypes = true;
for (auto Req: AllReqs) {
if (!First) {
OS << ", ";