Commit Graph

6 Commits

Author SHA1 Message Date
Doug Gregor
72ade27956 Revert "[PrintAsObjC] Don't include the module for empty extensions"
This reverts commit 8f01b2c8f8.
2020-04-10 00:08:46 -07:00
Anthony Latsis
d0ae3ee580 [AST] Replace FuncDecl::getName & EnumElementDecl::getName with ValueDecl::getBaseIdentifier 2020-03-29 00:35:51 +03:00
Alexis Laferrière
8f01b2c8f8 [PrintAsObjC] Don't include the module for empty extensions
rdar://problem/57133517
2020-03-09 14:10:44 -07:00
Robert Widmann
5a8d0744c3 [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.
2019-09-30 14:04:36 -07:00
Jordan Rose
a3063ccfc0 [PrintAsObjC] Use TypeDeclFinder instead of custom TypeVisitor (#27189)
This is the same type-walking logic we use for access control
checking, so it had better be correct. Perfect case for DRY!

No functionality change.
2019-09-14 15:20:47 -07:00
Jordan Rose
83e7763e9f [PrintAsObjC] Separate out module contents printing too (#27184)
The top-level PrintAsObjC now just covers import printing and the
near-literal prologue/epilogue text, while the decl printing (and
import collecting) is in its own file. No functionality change.
2019-09-13 20:13:59 -07:00