mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
APIDigester: Sort conformances when dumping sdk
See https://github.com/swiftlang/swift/pull/84193 for context.
This commit is contained in:
@@ -1988,7 +1988,7 @@ SwiftDeclCollector::addConformancesToTypeDecl(SDKNodeDeclType *Root,
|
||||
} else {
|
||||
// Avoid adding the same conformance twice.
|
||||
SmallPtrSet<ProtocolConformance*, 4> Seen;
|
||||
for (auto &Conf: NTD->getAllConformances()) {
|
||||
for (auto &Conf: NTD->getAllConformances(/*sorted=*/true)) {
|
||||
if (!Ctx.shouldIgnore(Conf->getProtocol()) && !Seen.count(Conf))
|
||||
Root->addConformance(constructConformanceNode(Conf));
|
||||
Seen.insert(Conf);
|
||||
|
||||
Reference in New Issue
Block a user