Skip to content

Link to class enum in namespace not working in file reference #9850

Closed
@louwers

Description

@louwers

Describe the bug
I have a function that returns an enum value. Documentation is generated for the enum but I cannot click on the return value to go to that documentation in a file reference (it works in a namespace reference).

Expected behavior
I expect to be able to link to an class enum inside a namespace.

Screenshots
Here is a screenshot of documentation of a file without a link:

image

And here is namespace documentation, where there is a link:

image

To Reproduce

status.hpp

/// @file

/// my namespace
namespace bla {

/// some enum
enum class Status { Done, Todo };

} // namespace bla

test.hpp

/// @file

#include "status.hpp"

namespace bla {

Status someFunction();

} // namespace bla

reproduction.zip

Version
1.9.6

Stack trace
N/A

Additional context
I asked about this on Stack Overflow as well: https://stackoverflow.com/questions/75408557/how-to-get-links-to-namespaced-enums-to-work-with-doxygen?noredirect=1#comment133066739_75408557

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions