Can you suggest some tool that generates both Abstract Syntax Tree and Control Flow Graph from C++ source code?
1 Answer
My company's product, the DMS Software Reengineering Toolkit, and its C++ Front End, can do this.
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.