Searching a code path

Is it possible to have ReSharper limit search results to calls made from a specific call tree?

For example, say we have:

void funcA()

{

     funcB();

}

void funcB()
{

     funcC();

}

Assume that "funcC" is used in many places throughout the file / project / solution. Is it possible for me to select "funcA" as the scope of the search and have ReSharper go through entire call tree for "funcA" and list all usages of "funcC"?

4 comments
Comment actions Permalink

Hello Mike,

What you describe sounds similar to ReSharper's Call Tracking (https://www.jetbrains.com/help/resharper/Code_Analysis__Call_Tracking.html). Unfortunately, this feature hasn't been yet implemented for C++.

0
Comment actions Permalink

Hi Igor, yes this is essentially what I had in mind. Would you happen to know if there are any plans to implement this for C++?

Thanks

0
Comment actions Permalink

We do plan to implement this but not sure when. I've filed a tracking issue - https://youtrack.jetbrains.com/issue/RSCPP-29111 - please vote for it to receive updates if you're interested.

In the meantime, you can probably try out Visual Studio's implementation of the same idea - Call Hierarchy (https://docs.microsoft.com/en-us/visualstudio/ide/reference/call-hierarchy).

0
Comment actions Permalink

Eclipse CDT has this call hierarchy feature for years and I miss it when using MSVS+Reshaper.

0

Please sign in to leave a comment.