c++code-analysis

Tool to find all instances of a class


I'm working on a C++ project where modules are meant to be combined in a small group to serve a specific purpose (in some sort of processing pipeline).

Sometimes it's hard to know the impact of any change, because we intuitively don't even know all the places where one of our module is being used.

I know I can do Search in Files to find all instances of a class, but is there a tool which can analyze my source code and give me the list of how many instances of each class is used?


Solution

  • However, I might not be understanding your question right, but I believe Doxygen can do that:

    You will be able to see how everything is being used and called from what. It will give you classes calling what other classes, a whole hierarchy of your code.