Can you suggest some tool that generates both Abstract Syntax Tree and Control Flow Graph from C++ source code?
The front end link shows renderings of example ASTs as well and control data flow graphs. It handles C++17.
Nobody wants "just" a control flow graph. DMS also provides a vast amount of machinery for building custom source code analyzers and transformers (building on the rest of its capabilities for parsing and flow analysis), enabling one to build tools a lot more easily than if one contemplates building such a custom tool from scratch, even if it uses DMS's standard C++ analyses.