Flowgen is a documentation framework that uses flowcharts to provide high-level and implementation-level views of C++ code. It extracts control flow information from code and annotates it on flowcharts at multiple zoom levels. Function calls and returns can be linked across flowcharts to show how code segments are connected.