Hi All<div><br></div><div>Is there a check implemented in Clang Checker (maybe not released for XCode yet) that would find errors like in example:</div><div><br></div><div>@interface SomeClass : NSObject {</div><div> NSMutableDictionary *_someObjects;</div>
<div>}</div><div>@end</div><div><br></div><div>@implementation SomeClass</div><div>- (id)init {</div><div> if ((self = [super init])) {</div><div> _someObject = [NSMutableArray new];</div><div> }</div><div> return self;</div>
<div>}</div><div>@end</div><div><br></div><div>Methods 'new' or 'init' return object of type 'id' by convention, but as I experienced it myself it can be unsafe.</div><div><br></div><div>Cheers</div>
<div>Marcin</div>