How to Find all the subclass implementations of a function?

已回答

Is there a way to find all the implementations of a function including subclass and superclass implementations?

I'm thinking it would return a Find result, but it would "Found implementations" rather than "Found usages". I guess another way would be to show it like the class Type Hierarchy.

It can be really handy to see all the overriding implementations for a given function (either form where it is being used or where it is declared).

 

Thanks,

d

 

 

1

Hi David! It seems the "Method Hierarchy" feature should be suitable for this case. Unfortunately, it's not implemented yet: https://youtrack.jetbrains.com/issue/CPP-1663

0

Wow, that seems like a pretty big gap. There is no other way other than text search? Thx!

0

Also you can navigate to override functions using the gutter icons:

I'm afraid, there is no other way for now.

0

This seems to work:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206607235/comments/206009499

Set the cursor into the virtual function, open the type hieararchy (ctrl + H), check the “Subtypes Hierarchy” and then the implementations should be listed.

0

请先登录再写评论。