Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Feature Suggestion: Include-Walker

(1/2) > >>

The-Kenny:
Hello,

I think I have an idea for a useful extension: A plugin/dialog/something which displays a tree with all includes of the current file/project.

So could any user see fast which files depends on another and which includes are doesn't needed.

This feature is possible easy to implent, because the parsing is already done in the $(project).depends-file.

Steven 'lazalong':
nice idea.

And use for example a red icon as leaf when it detect a recursive include.

So instead of:  file1.h -> file2.h -> file1.h -> file1.h -> etc
you get:  file1.h -> file2.h -> file1.h

MortenMacFly:
You can achieve this using thrid party tools such as Doygen if you like. But yes: Having that as a plugin would be nice and shouldn't be too hard to implement. Hence for the core devs I'm afraid other things are more important first.

Probably I can encourage plugin devs (or people that always had in minf to try tro write a plugin) to do so hereby. Honstly: It shouldn't be too hard.

Biplab:

--- Quote from: MortenMacFly on April 09, 2008, 08:28:36 am ---Honstly: It shouldn't be too hard.

--- End quote ---

It may be difficult to implement.  If you include headers inside #ifdef and with a complicated expression to evaluate, you will need a good parser to find out the dependency. :)

MortenMacFly:

--- Quote from: Biplab on April 09, 2008, 01:12:06 pm ---If you include headers inside #ifdef and with a complicated expression to evaluate, you will need a good parser to find out the dependency. :)

--- End quote ---
Well... C::B ships with depslib, right?! ;-)

But yes: You can make it complex for sure.

Navigation

[0] Message Index

[#] Next page

Go to full version