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"?
Please sign in to leave a comment.
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++.
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
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).
Eclipse CDT has this call hierarchy feature for years and I miss it when using MSVS+Reshaper.