Discussion:
Flowchart generator from C++ code
(too old to reply)
ssylee
2009-01-09 19:58:40 UTC
Permalink
I was trying to use doxygen's diagram generator to generate flowchart
of a particular function, but didn't work well (even after installing
graphviz). Is there a good flowchart generator program out there or
would the flowchart of a function that I have implemented need to be
figured out by hand?
user923005
2009-01-10 04:38:12 UTC
Permalink
Post by ssylee
I was trying to use doxygen's diagram generator to generate flowchart
of a particular function, but didn't work well (even after installing
graphviz). Is there a good flowchart generator program out there or
would the flowchart of a function that I have implemented need to be
figured out by hand?
Maybe one of these can help:
http://www.sharewareconnection.com/titles/c-c-flowchart.htm

I have used Fatesoft tools:
http://www.filesland.com/companies/FateSoft/products.html

As far as SourceForge goes, Dzine will draw class diagrams:
http://sourceforge.net/projects/dzine/

Most SourceForge projects deal only with C code and cannot handle C++.

I think you might like BOUML. It does not draw flow charts, but it
does a good job of analyzing a C++ system.
It does not have flow charts, but it does have a state machine diagram
generator (which tends to make more sense with classes anyway).

Doxygen does not claim to draw flow charts. I has call trees and some
other useful things though.

There used to be a Redhat tool called something like "Source Browser"
that did a nice job of documenting C++ code. I can't seem to find it
any more.
ssylee
2009-01-10 05:50:14 UTC
Permalink
Post by ssylee
I was trying to use doxygen's diagram generator to generate flowchart
of a particular function, but didn't work well (even after installing
graphviz). Is there a good flowchart generator program out there or
would the flowchart of a function that I have implemented need to be
figured out by hand?
Maybe one of these can help:http://www.sharewareconnection.com/titles/c-c-flowchart.htm
I have used Fatesoft tools:http://www.filesland.com/companies/FateSoft/products.html
As far as SourceForge goes, Dzine will draw class diagrams:http://sourceforge.net/projects/dzine/
Most SourceForge projects deal only with C code and cannot handle C++.
I think you might like BOUML.  It does not draw flow charts, but it
does a good job of analyzing a C++ system.
It does not have flow charts, but it does have a state machine diagram
generator (which tends to make more sense with classes anyway).
Doxygen does not claim to draw flow charts.  I has call trees and some
other useful things though.
There used to be a Redhat tool called something like "Source Browser"
that did a nice job of documenting C++ code.  I can't seem to find it
any more.
Thanks. I actually used the product from Fatesoft. However, since I
didn't really want to pay for it, I used the shareware version and
copied the diagram by hand and further simplified the flowchart at the
same time.
Phlip
2009-01-10 17:55:15 UTC
Permalink
Post by ssylee
I was trying to use doxygen's diagram generator to generate flowchart
of a particular function, but didn't work well (even after installing
graphviz). Is there a good flowchart generator program out there or
would the flowchart of a function that I have implemented need to be
figured out by hand?
How are the function's unit tests doing? They should be the primary
documentation for its flow...

(And I always dream about scraping call sequence diagrams out of traces of all
the unit tests running, but I don't know how ready C++ tools are for that!)
--
Phlip
Continue reading on narkive:
Loading...