Differences From Artifact [69d1f3e9bd]:
- File src/OFIntrospection.h — part of check-in [52011fbfd6] at 2017-09-26 21:53:44 on branch trunk — Many nullability fixes (user: js, size: 5889) [annotate] [blame] [check-ins using] [more...]
To Artifact [5b3e73bb9a]:
- File
src/OFIntrospection.h
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 5959) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
58 59 60 61 62 63 64 | @property (readonly, nonatomic) OFString *name; /*! * The type encoding for the method. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const char *typeEncoding; | | | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | @property (readonly, nonatomic) OFString *name; /*! * The type encoding for the method. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const char *typeEncoding; - (instancetype)init OF_UNAVAILABLE; @end /*! * @class OFProperty OFIntrospection.h ObjFW/OFIntrospection.h * * @brief A class for describing a property. */ |
︙ | ︙ | |||
107 108 109 110 111 112 113 | @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *getter; /*! * @return The name of the setter. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *setter; | | | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *getter; /*! * @return The name of the setter. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *setter; - (instancetype)init OF_UNAVAILABLE; @end /*! * @class OFInstanceVariable OFIntrospection.h ObjFW/OFIntrospection.h * * @brief A class for describing an instance variable. */ |
︙ | ︙ | |||
137 138 139 140 141 142 143 | @property (readonly, nonatomic) ptrdiff_t offset; /*! * The type encoding for the instance variable. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const char *typeEncoding; | | | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | @property (readonly, nonatomic) ptrdiff_t offset; /*! * The type encoding for the instance variable. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) const char *typeEncoding; - (instancetype)init OF_UNAVAILABLE; @end /*! * @class OFIntrospection OFIntrospection.h ObjFW/OFIntrospection.h * * @brief A class for introspecting classes. */ |
︙ | ︙ | |||
200 201 202 203 204 205 206 | /*! * @brief Creates a new introspection for the specified class. * * @return A new, autoreleased introspection for the specified class */ + (instancetype)introspectionWithClass: (Class)class_; | | | | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | /*! * @brief Creates a new introspection for the specified class. * * @return A new, autoreleased introspection for the specified class */ + (instancetype)introspectionWithClass: (Class)class_; - (instancetype)init OF_UNAVAILABLE; /*! * @brief Initializes an already allocated OFIntrospection with the specified * class. * * @return An initialized OFIntrospection */ - (instancetype)initWithClass: (Class)class_ OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END |