breathe icon indicating copy to clipboard operation
breathe copied to clipboard

Remove duplicated virtual functions from using-declarations

Open ZedThree opened this issue 1 year ago • 0 comments

struct Base {
  /// Zero arg impl
  virtual int foo() { return 42; };
  /// One arg impl
  virtual int foo(int x) { return x; };
};

struct Derived : public Base {
  using Base::foo;
  /// One arg override
  int foo(int x) override { return x + 1; }
};

This snippet generates duplicate declaration warnings in Sphinx, ultimately due to an issue in Doxygen. This PR cleans up the member list by checking if multiple members reimplement the same refid, and removes duplicates.

ZedThree avatar Jan 24 '24 09:01 ZedThree