mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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 << ", ";
|
||||
|
||||
Reference in New Issue
Block a user