Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Include tree
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BruteForce
Senior Member

Greece
32 Posts

Posted - Aug 01 2008 :  08:27:21 AM  Show Profile  Reply with Quote
Something that I would find immensly useful (and I think others too) would be a utility that would show me the include-tree of a given C++ file (H or CPP).

What do I mean by "include-tree"?

Supposing that I have a CPP file with the following includes:
#include "stdafx.h"
#include "UB1394DLLHelper.h"
#include "FireiXCamera.h"
#include "FireiFixedStreamFormat.h"

I would like to see something like:

stdafx.h
--> windows.h
-----> xyz.h
--------> blabla.h
-----> gsd.h
-----> etc etc
UB1394DLLHelper.h
--> FireAPI.h
-----> 1394Types.h
--------> 1394enums.h
-----> 1394Speed.h
-----> etc etc
FireiXCamera.h
--> etc etc

I hope you can get my point. The problem that I face all too often is improper inclusion of headers, or including headers out of order, and then I get some obsure compile error message for example that AV_TYPES is not defined my xyz.h, while I know I include <streams.h> "somewhere" and then I am trying to figure out where is the mistake and what file ended up including xyz.h before <streams.h> was included.

I am sure I am not the only one with this kind of issue, especially when starting up a new project.

Guys, I beg you... Please implement this feature! We have more important things to do other than battling with header file inclusions.

Warm Regards
Dimitris Staikos
Unibrain

When all else fails try common sense.

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Aug 01 2008 :  09:41:45 AM  Show Profile  Reply with Quote
We are considering doing something like this:

case=7156

zen is the art of being at one with the two'ness
Go to Top of Page

sl@sh
Tomato Guru

Switzerland
204 Posts

Posted - Aug 04 2008 :  10:00:23 AM  Show Profile  Reply with Quote
I'd looked for help on similar problems and stumbled upon this tool : http://www.profactor.co.uk/includemanager.php

I haven't come around to actually try it out yet (somehow time-limited trial versions always stand in conflict with project deadlines), but if you do, please share your experience

Of course, this tool might provide a lot more functionality than you'll ever need - that's why you're allowed to pay for it!
Go to Top of Page

borgman
New Member

8 Posts

Posted - Aug 04 2008 :  10:56:54 AM  Show Profile  Reply with Quote
I've used this tool for awhile.

http://www.codeproject.com/KB/applications/includefinder.aspx?display=Print
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 18 2013 :  3:33:47 PM  Show Profile  Reply with Quote
case=7156 is implemented in build 2007.
Include file hierarchy viewer is a mode of the HCB in the VA View.

It can be invoked 3 ways:
- VAssistX | Tools | List include files: opens VA View and places focus in HCB
- when HCB update on position change is enabled, placing caret on a #include line updates HCB w/ includes
- when caret is within top 15 lines of editor that otherwise would leave HCB empty, then includes are listed in HCB (can be disabled via HCB context menu)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000