Automatically import headers

Originator:imran.raheem
Number:rdar://111 Date Originated:02-Aug-2011 11:44 AM
Status:Duplicate/9875395 Resolved:
Product:Developer Tools Product Version:4.2
Classification:Feature (New) Reproducible:N/A
 
Summary:
It would be great if the compiler could automatically import needed headers.

Steps to Reproduce:
Write some code and forget to import a header.

Expected Results:
The compiler would see that the needed header is available and automatically import it.

Actual Results:
It doesn't.

Regression:
N/A

Notes:
Obviously if a header was already present, it should not automatically load one. This would solve edge cases like categories and such where collisions could occur.

This would be a really nice improvement and save many developers a lot of time and headache.

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!