I need to automatically construct flowcharts out of C++ code, ideally one flowchart per source file. Is there any tool (preferably C++/Python and either open-sourced or highly configurable - so I may change the look) that I can use to create flowcharts?

clang/llvmcan generate graphviz dot files.Example:
This will output several
.dotfiles, one for each function defined inhello.cpp. You can also generate dominance graph, post dominance graph and more (see here).After you have your
.dotfiles you can usedotto convert it to a.pngfile. The.dotfile itself contains only the structure of the graph, so the output ofdotshould be highly configurable (but I am not really familiar with it).