Philipp
Philipp

Reputation: 2526

Find code that could be reached by a specific function

I have a hard time formulating this question. The reason I'm asking is that I want to convert some C++ code with emscripten to java script code, but I don't think I need to convert the whole code base.

Is it possible in C++ to find all the code that a particular function could reach into when executed? Then I would know which part of the code I need to convert and which one I can just ignore.

Upvotes: 1

Views: 71

Answers (1)

Vitorlui
Vitorlui

Reputation: 770

It is called "call hierarchy" as Eugene said. You can use automatic documentation tools to get this information.

I strongly recommend you to try doxygen because it is really easy to use: http://www.doxygen.nl/

Upvotes: 2

Related Questions