Differences From Artifact [b331601cc7]:
- File src/OFIntrospection.m — part of check-in [5882409fd0] at 2017-10-01 09:54:52 on branch trunk — Nullability fixes for ObjFW runtime (user: js, size: 12735) [annotate] [blame] [check-ins using]
To Artifact [cd2923612d]:
- File
src/OFIntrospection.m
— part of check-in
[e47c219327]
at
2017-10-01 14:05:29
on branch trunk
— Disable -Wnullable-to-nonnull-conversion again
It does not work well enough yet: While creating a lot of noise, it
fails to even find many of the obvious cases. Depending on the static
analyzer seems to be the better approach for now. (user: js, size: 12693) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
146 147 148 149 150 151 152 | @try { _name = [[OFString alloc] initWithUTF8String: property->name]; _attributes = property->attributes | (property->extended_attributes << 8); if (property->getter.name != NULL) | | | | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | @try { _name = [[OFString alloc] initWithUTF8String: property->name]; _attributes = property->attributes | (property->extended_attributes << 8); if (property->getter.name != NULL) _getter = [[OFString alloc] initWithUTF8String: property->getter.name]; if (property->setter.name != NULL) _setter = [[OFString alloc] initWithUTF8String: property->setter.name]; } @catch (id e) { [self release]; @throw e; } return self; } |
︙ | ︙ | |||
387 388 389 390 391 392 393 | self = [super init]; @try { const char *name = ivar_getName(ivar); if (name != NULL) _name = [[OFString alloc] initWithUTF8String: | | | 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | self = [super init]; @try { const char *name = ivar_getName(ivar); if (name != NULL) _name = [[OFString alloc] initWithUTF8String: ivar_getName(ivar)]; _typeEncoding = ivar_getTypeEncoding(ivar); _offset = ivar_getOffset(ivar); } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ |