Automatically import headers

Originator:samsoffes
Number:rdar://9875395 Date Originated:01-Aug-2011 11:46 AM
Status:Open Resolved:
Product:Developer Tools Product Version:4.2
Classification:Feature (New) Reproducible:N/A
 
01-Aug-2011 11:46 AM Sam Soffes:
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 developer a lot of time and headache.

Duplicates

Number Status Originator Product Title
rdar://111 Duplicate/9875395 imran.raheem Developer Tools Automatically import headers

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!