Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Ensure right include files

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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:

http://www.wholetomato.com/products/features/autoUsing.asp#include

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:

case=32045

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000