Domanda

I'm looking for a tool that would help me read a large amount of C++ source code for a complex product and understand relationships between components and datatype and have those relationshipts diagrammed and noted. The way I see it work for me is, I would create a note (node in diagram) 'foo', then for each function that 'foo' calls that I'm interested in (major ones) I would create children of 'foo' diagram nodes in order in which they get called and I would have a possibility to annotate each 'node' with 'missing arg check?' or 'do we need a fat lock here? rw maybe?' or similar and maybe have those nodes dotted-line-refer to a datatype that it works with. So in my mind it's kind of a Visio with auto-placed and auto-connected nodes, with 2-3 different connections/arrows types and ways to arrange it on a page so that the call-graph grows in one direction (downwards).

Pointers to such a tool will be greatly appreciated and if you can suggest a better approach to the process itself, let me know, I'm being swamped with the amount of code I want to digest and it's the first time for me, so I'm new to this. Thanks!

Update. Here's what I think I want in terms how it would look like

manual callgraph sketch.

The 'automatic' part of the tool is that it would re-arrage the nodes, so all of them are visible, auto-size the nodes, create links by clicks (say right-click for child node and left click for datatype reference) and so on.

È stato utile?

Soluzione

Turns out the answer to my question was - the latest Microsoft Visual Studio. MS VC 2012 contains this - http://msdn.microsoft.com/en-us/library/dd409453.aspx, which is exactly what I've been looking for.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top