Generate calling graph for C++ code
<p>I'm trying to generate calling graph with wish to find out all the possible execution paths that hitting a particular function (so that I don't have to figure out all the paths manually, as there are many paths that leading to this function). For instance:</p>

<p>path 1: A -> B -> C -> D<br>
path 2: A -> B -> X -> Y -> D<br>
path 3: A -> G -> M -> N -> O -> P -> S -> D<br>
...<br>
path n: ...</p>

<p>I have tried Codeviz and Doxygen, somehow both results show nothing but callees of target function, D. In my case, D is member function of a class whose object will be wrapped within a smart pointer. Clients will always obtain the smart pointer object through a factory in order to invoke D.</p>

<p>Does anyone know how to achieve this?</p>

<p>Thanks,<br>
shiouming</p>
