views:

2882

answers:

6

Is there any free tools available for generating class diagram from c++ source files and if possible for mfc source files too.

+17  A: 

We use doxygen with graphviz support

fa.
+2  A: 

Since I don't have enough rep to edit fa's comment, Here is the link to graphviz. I use this as well and it works great.

dagorym
A: 

You could try SourceNavigator. I'm not sure what the current state of the project is, but here's a place to start.

Dan Breslau
A: 

I've had some success with Umbrello (a KDE-based app). It allows you to import code to create a model, that can then be used to generate UML diagrams.

Void
A: 

Disappointed with Umbrello

anurag
A: 

Umbrello is probably fine for projects with a limited number of classes, and certainly requires manual intervention for tuning. I imagine doxygen/graphviz is more suitable for larger projects.

Gunee