Skip to content

Using-declaration with root namespace qualifier is not a hyperlink in source pages #11230

@eramongodb

Description

@eramongodb

Given a header file header.hpp with the following content:

namespace A {

struct X {};
struct Y {};

} // namespace A

namespace B {

using   A::X;
using ::A::Y; // <--

} // namespace B

In the source page for this header file (header_8hpp_source.html), only A::X in using A::X; is a link to a class page (in this case, classA_1_1X.html). The ::A::Y in using ::A::Y; is not a link despite a class page for both A::Y (classA_1_1Y.html) and B::Y (classB_1_1Y.html) being present.

Given the behavior of using A::X;, I expect the text for using ::A::Y; should be a link to classA_1_1Y.html. However, I think it is preferable for both to link to the class pages generated for namespace B rather than namespace A: using A::X; -> classB_1_1X.html and using ::A::Y; -> classB_1_1Y.html respectively.

Reproducible with Doxygen version 1.12.0 and with the latest commit (6a822ee) on master. Observed during validation of fixes for #3760.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions