You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
Staffan
Posted - Jan 11 2011 : 10:17:16 AM Hi,
I would like some help with having header files being able to be incleded stand-alone, ie not depend on the ordering/pre-inclusion of other files.
For example, in a certain implementation of STL, some header files may include other header files, and I may mistakenly use a class that I haven't specifically included the header for.
Example:
I use size_t without having included stddef.h. It works, because I have included for example <vector>, but not the documented include file. In this case, I would like some help with pointing out that I use a type that has not been specifically included.
I would also like to have VA add the correct header and using statement to my implementation file if I use a type that I haven't included the header for.
Regards, /Staffan
1 L A T E S T R E P L I E S (Newest First)
accord
Posted - Jan 20 2011 : 7:59:21 PM You can add includes automatically by using our "Add include" refactoring feature:
Also, this feature supports the checking whether a symbol is directly included or not, because Add Include only available when the symbol in not yet included directly. So it isn't available if the symbol is not included at all or not included directly.
Regarding Add using: we are considering to implement this at some point: