Skip to content

Parentheses in return type template are dropped #8465

Closed
@nilsvu

Description

@nilsvu

Describe the bug

This C++ function is not parsed correctly by Doxygen:

/// One of the opening parens in the return type is dropped by Doxygen.
template <typename T>
MyTemplate<decltype(std::declval<T>())> broken_func();

I created a minimal working example to reproduce this issue here:

Running doxygen Doxyfile in this directory produces XML and HTML output. Here's a screenshot from the HTML output that shows the issue:

Bildschirmfoto 2021-03-29 um 14 41 44

Expected behavior

The return type should read MyTemplate<decltype(std::declval<T>())> (note the missing parenthesis in the screenshot above).

Version

  • Doxygen version 1.9.1
  • macOS 11.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions