[api-digester] Include USRs in conformances

SDK conformance nodes include only protocol
`name` and `printedName`, both are demangled.
USR field of the protocol type is added, to be able
to uniquely identify conformances.
This commit is contained in:
dmcyk
2019-05-07 22:09:28 +02:00
parent aa30f3507f
commit 1142b6037c
6 changed files with 137 additions and 68 deletions

View File

@@ -499,11 +499,13 @@ public:
/// The SDKNode part of the conformance node is constructed using the protocol
/// in the conformance, thus getName() will give us the name of the protocol.
class SDKNodeConformance: public SDKNode {
StringRef Usr;
SDKNodeDeclType *TypeDecl;
friend class SDKNodeDeclType;
bool IsABIPlaceholder;
public:
SDKNodeConformance(SDKNodeInitInfo Info);
StringRef getUsr() const { return Usr; }
ArrayRef<SDKNode*> getTypeWitnesses() const { return Children; }
SDKNodeDeclType *getNominalTypeDecl() const { return TypeDecl; }
bool isABIPlaceholder() const { return IsABIPlaceholder; }