visual-studioresharperjetbrains-ideresharper-c++

Can I get ReSharper to generate "overrides" for non-virtual functions?


I know it's not overriding, but I don't know if there's a name for "shadowing" parent functions in child classes. (If there is please tell me)

Example:

class Foo
{
public:
    void fn(std::string s);
};

class Bar : public Foo
{
public:
    void fn(std::string s);
};

It's a small issue, but it is rather annoying to have to copy and paste these kinds of function declarations constantly.

ReSharper only lets me generate actual overrides for virtual functions.


Solution

  • There's currently no way to generate a shadowing function in R#. I've filed a feature request to track upvotes.