tags:

views:

103

answers:

5

Is there a tool where I can give a file + function name as an input and it gives me all functions the given function depends on and the same for all the found functions, and so on within my codebase?

Something like this would help a lot in extracting functionality from existing codebases.

A: 

I don't know of a standalone tool that will do this. However it is a supported feature of certain IDE's such as Source Insight

JaredPar
+1  A: 

See this discussion.

lhf
A: 

Source Navigator is a free tool that includes this functionality:

http://sourcenav.sourceforge.net/

Eric Melski
A: 

You could use doxygen with dot to create a call graph -- it should work fine even without doxygen annotations in the comments.

See some samples of it here.

Mark Rushakoff
A: 

cxref should do what you ask for.

sigjuice