I'm looking for a tool which will take as input a C++ source file, and output (in plain text, HTML, PNG, PDF, whatever format) a summary containing at least a list of the functions defined in the source file, and ideally some further information about defined types and variables, and what refers to what. Does such a thing exist?
-
"a C++ source file" - a single one? Or a whole project?– Thomas WellerCommented Aug 17, 2023 at 16:59
-
@ThomasWeller Preferably a single one, though if a project-based tool is available, and is all that's available, I'm willing to take a look at it.– rwallaceCommented Aug 17, 2023 at 17:18
-
A C++ file typically only contains one type, which is the class it defines (There are exceptions of course). Also, the header file which belongs to the CPP file often contains the type it defines and the methods. Therefore, I can't imagine how such a tool would be more useful than looking at the header file.– Thomas WellerCommented Aug 17, 2023 at 17:22
-
A single CPP file will typically include its header and probably other stuff. Should those be considered (we say "compilation unit") or not?– Thomas WellerCommented Aug 17, 2023 at 17:22
Add a comment
|