[Static Analyzer] Add check for -isEqual: but not -hash

Originator:bjhomer
Number:rdar://12422698 Date Originated:03-Oct-2012
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.6.2
Classification: Reproducible:
 
Summary:
People often forget to implement -hash when they implement -isEqual:. You should really be overriding both or neither.

I'd love a static analyzer check that raises an issue if either -hash or -isEqual: is implemented but not both.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!