Search code examples
clanguage-agnostic

Is there an easy way to find which other functions can call a certain function from the source code?


I have a function which is called explicitly by 4 other functions in my code base. Then in turn each of these functions is called by at least 10 other functions throughout my code. I know that I could, by hand, trace one of these function calls to the main function of my program (which has 30 function calls) but it seems like this would be a better job for the computer. I just want to know which of the functions in main() is calling this buried function.

Does anyone know of any software that could help?

Also, using a debugger is out of the question. That would have been too easy. The software only runs on a hand held device.


Solution

  • doxygen, correctly configured, is able to output an HTML document with navigable caller list and called-by list for every function in your code. You can generate call graphs as well.