mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Adopt TypeBase-isms for GenericSignature
Structurally prevent a number of common anti-patterns involving generic signatures by separating the interface into GenericSignature and the implementation into GenericSignatureBase. In particular, this allows the comparison operators to be deleted which forces callers to canonicalize the signature or ask to compare pointers explicitly.
This commit is contained in:
@@ -457,7 +457,7 @@ void SwiftLangSupport::printFullyAnnotatedDeclaration(const ValueDecl *VD,
|
||||
}
|
||||
|
||||
void SwiftLangSupport::printFullyAnnotatedGenericReq(
|
||||
const swift::GenericSignature *Sig, llvm::raw_ostream &OS) {
|
||||
const swift::GenericSignature Sig, llvm::raw_ostream &OS) {
|
||||
assert(Sig);
|
||||
FullyAnnotatedDeclarationPrinter Printer(OS);
|
||||
PrintOptions PO = PrintOptions::printQuickHelpDeclaration();
|
||||
|
||||
Reference in New Issue
Block a user