mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[api-digester] Teach the api-digester about hasMissingDesignatedInitializers
Because we won’t be serializing this attribute, add custom diagnostics for the cases where: - We add @_hasMissingDesignatedInits to an open class, which means subclasses won’t be able to inherit its inits - We remove @_inheritsConvenienceInitializers, which means APIs are removed
This commit is contained in:
committed by
Robert Widmann
parent
511db0c90a
commit
4d731735d2
@@ -98,6 +98,10 @@ ERROR(objc_name_change,none,"%0 has ObjC name change from %1 to %2", (StringRef,
|
||||
|
||||
ERROR(desig_init_added,none,"%0 has been added as a designated initializer to an open class", (StringRef))
|
||||
|
||||
ERROR(added_invisible_designated_init,none,"%0 has new designated initializers that are not visible to clients", (StringRef))
|
||||
|
||||
ERROR(not_inheriting_convenience_inits,none,"%0 no longer inherits convenience inits from its superclass", (StringRef))
|
||||
|
||||
#ifndef DIAG_NO_UNDEF
|
||||
# if defined(DIAG)
|
||||
# undef DIAG
|
||||
|
||||
Reference in New Issue
Block a user