Search code examples
c++doxygenfunction-calls

Doxygen to document all functions in a class with call graph?


What would be the best way to figure out all the calls made in a C++ class? I would like to not only find all the calls, I want to find out functions that aren't being called at all so I could clean up my code. I have heard that doxygen can work miracles when it generates the call graphs but it seems it is only generating call graphs for my constructor and like one other function when I have a bunch more I need.

All my class functions have been documented.


Solution

  • We really need more information here, for example, have you documented all your class methods? Have you made any changes to the default doxygen configuration file? As a first step try setting

    CALL_GRAPH = YES
    EXTRACT_ALL = YES 
    EXTRACT_LOCAL_CLASSES = YES
    

    in the doxygen configuration file.