Skip to content

Feature Request: Show all overrides of a virtual method #71

@SteveWolligandt

Description

@SteveWolligandt

Hi,
I thought that querying a list of all overridden methods of a virtual method would be pretty nice. For example when having this code base:

class Base {
 public:
  virtual void foo() = 0;
};

class Impl1 : public Base {
 public:
  void foo() { std::cout << "In Impl1\n"; } override
};

class Impl2 : public Base {
 public:
  void foo() { std::cout << "In Impl2\n"; } override
};

When the cursor is on any foo declaration / definition and executing :ClangdShowOverrides this could open a new split in which you would get something like this:

Base::foo() 
- Impl1::foo()
- Impl2::foo()

As in :ClangdTypeHierarchy you could jump to definition by hovering any line.

Thanks,
Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions