3 ms·
Haha dw I'm more than happy to be proven wrong. > I've seen (and briefly played with) tools for some languages that will create flow diagrams from your source
by disposedtrolley 7y ago
Haha dw I'm more than happy to be proven wrong.
> I've seen (and briefly played with) tools for some languages that will create flow diagrams from your source code.
Could you share what those tools were?
- Reelin 7y agoI believe I was primarily using Architexa (https://github.com/i3labs/architexa https://github.com/i3labs/architexa), but it was a number of years ago when I was working exclusively in Java. JetBrains also provides a few diagramming plugins, but I've never used them. I haven't yet come across tooling that does the same for C, C++, or D. This response inspired me to take a look though, and I did find something for Python (https://stackoverflow.com/questions/45238329 https://stackoverflow.com/questions/45238329). Thinking about it, the instrumentation approach taken there might actually work fairly well for most systems languages assuming you don't have any dead (or rarely called) code. Graphviz could be combined with the "-finstrument-functions" GCC flag and a few supporting data structures. Templated code would be tricky to deal with though. Edit: Just came across CppDepend (https://www.cppdepend.com/ https://www.cppdepend.com/). It's proprietary, but appears to be incredibly powerful at first glance. See its dependency analysis in particular (https://www.cppdepend.com/dependenciesview https://www.cppdepend.com/dependenciesview).