Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 find missing/needless includes

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
daThomas Posted - Nov 18 2008 : 07:30:34 AM
Hi,

VA seems to have all information of classes and symbols defined in different header files. I would love to have an option of proposing a list of includes needed for a file.
In large projects i often have the problem of getting a list of modules i depend on. As includes "grow" during development, there may be

a) includes, i dont need anymore
b) missing includes which are accidentally included indirectly

To find these includes to finally have all neccessary ones is time consuming. VA could return such a list easily i could imagine.
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 27 2009 : 10:24:01 PM
case=226 is implemented in build 1715
Hover over an unrecognized symbol and choose "Add include xxxx" from the refactoring context menu.

daThomas Posted - Nov 18 2008 : 09:00:00 AM
I do the same up to now :)

But as i wrote, i fail to find the following scenario:

file A includes B and uses C. B includes C.

everything works fine but i do not find out that i have a direct dependency to module C just by looking at my includes.
feline Posted - Nov 18 2008 : 08:54:17 AM
We are considering a feature to suggest missing include files:

case=226

To find and remove includes that are no longer needed, personally I just tend to comment them all out (select them and press /) and then compile the file and see what breaks

This is not something I do very often.

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