<p>I have taken over a large code base and would like to get an overview how and where certain classes and their methods are used.</p>

<p>Is there any good tool that can somehow visualize the dependencies and draw a nice call tree or something similar?</p>

<p>The code is in C++ in Visual Studio if that helps narrow down any selection.</p>

[{'answer_id': 35751, 'author': 'svrist', 'author_id': 86, 'author_profile': 'https://Stackoverflow.com/users/86', 'pm_score': 0, 'selected': False, 'text': "<p>In Java I would start with JDepend. In .NET, with NDepend. Don't know about C++.</p>\n"}, {'answer_id': 35756, 'author': 'David Crow', 'author_id': 2783, 'author_profile': 'https://Stackoverflow.com/users/2783', 'pm_score': 2, 'selected': True, 'text': '<p>Here are a few options:</p>\n\n<ul>\n<li><a href="http://www.codedrawer.com/index.html" rel="nofollow noreferrer">CodeDrawer</a></li>\n<li><a href="http://www.westernwares.com/" rel="nofollow noreferrer">CC-RIDER</a></li>\n<li><a href="http://www.doxygen.nl/index.html" rel="nofollow noreferrer">Doxygen</a></li>\n</ul>\n\n<p>The last one, doxygen, is more of an automatic documentation tool, but it is capable of generating dependency graphs and inheritance diagrams. It\'s also licensed under the GPL, unlike the first two which are not free.</p>\n'}, {'answer_id': 37778, 'author': 'HS.', 'author_id': 1398, 'author_profile': 'https://Stackoverflow.com/users/1398', 'pm_score': 0, 'selected': False, 'text': '<p>David, thanks for the suggestions. I spent the weekend trialing the programs.</p>\n\n<p>Doxygen seems to be the most comprehensive of the 3, but it still leaves some things to be desired in regard to callers of methods.</p>\n\n<p>All 3 seem to have problems with C++ templates to varying degrees. CC-Rider simply crashed in the middle of the analysis and CodeDrawer does not show many of the relationships. Doxygen worked pretty well, but it too did not find and show all relations and instead overwhelmed me with lots of macro references until I filtered them out.</p>\n\n<p>So, maybe I should clarify "large codebase" a bit for eventual other suggestions: >100k lines of code overall spread out over more than 100 template files plus several actual class files pulling it all together.</p>\n\n<p>Any other tools out there, that might be up to the task and could do better (more thoroughly)? Oh and specifically: anything that understands IDL and COM interfaces?</p>\n'}, {'answer_id': 37788, 'author': 'Chris de Vries', 'author_id': 3836, 'author_profile': 'https://Stackoverflow.com/users/3836', 'pm_score': 1, 'selected': False, 'text': '<p>When I have used Doxygen it has produced a full list of callers and callees. I think you have to turn it on.</p>\n'}, {'answer_id': 39397, 'author': 'HS.', 'author_id': 1398, 'author_profile': 'https://Stackoverflow.com/users/1398', 'pm_score': 0, 'selected': False, 'text': '<blockquote>\n  <p>When I have used Doxygen it has produced a full list of callers and callees. I think you have to turn it on.</p>\n</blockquote>\n\n<p>I did that of course, but like I mentioned, doxygen does not consider interfaces between objects as they are defined in the IDL. It "only" shows direct C++ calls.</p>\n\n<p>Don\'t get me wrong, it is already amazing what it does, but it is still not complete from my high level view trying to get a good understanding of how everything fits together.</p>\n'}]
['https://Stackoverflow.com/questions/35745', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1398/']