Skip to content

mrdocs produces bogus diagnostic when inheriting from an external class #1119

@mizvekov

Description

@mizvekov

Reduced test case from recent #1077 failure:

namespace ns {
  struct Foo {
    /// bar
    int bar();
  };
}
/// Baz
struct Baz : ns::Foo {};

Assumes mrdocs.yml includes some other namespace, but doesn't include ns:

include-symbols:
  - 'mrdocs::**'

For this test case, mrdocs produces the following diagnostic:

test.hpp:4:5:
    1) Baz::bar: Missing documentation for return value
  4 |     int bar();
    |     ^~~~~~~~~~

The documentation for bar produces a diagnostic even though it is external to the project (member of an excluded namespace).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions