Xcode: Add analyzer results/compiler warning for retainCount

Originator:pburleson
Number:rdar://9751669 Date Originated:10-Jul-2011 11:17 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.0.2 build 4A2002a
Classification:Enhancement Reproducible:N/A
 
This is a dupe of rdar://9735885, just adding my vote.

Summary:

It would be useful, since using retainCount should be discouraged, to have sending the retainCount message be an analyzer result and/or compiler warning when not using ARC.

Steps to Reproduce:

1. Build a project which uses retainCount directly.

Expected Results:

The project should having warnings and analyzer results informing the developer not to use retainCount.

Actual Results:

The code compiles cleanly.

Regression:

N/A

Notes:

N/A

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!