Simple tool for callgraph in C++

c++, static-analysis

Solution

How about cscope? Check out 3rd & 4th bullet items on the page:

- functions called by a function

- functions calling a function

It's been a while since I used cscope on C++, I seem to remember it being rock-solid on C code, but not as strong with C++.

Problem

Is there are simple tool, which can be used to determine from where a function is called, which other function the function calls ...? Edit: I'm using Mac OS X (10.6) and just want to do static analysis. Thanks!

Original source