Closed
Description
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:
- MWE: issue_doxygen_templates.zip or
https://github.com/nilsleiffischer/sphinx-bugs/tree/master/issue_doxygen_templates
Running doxygen Doxyfile
in this directory produces XML and HTML output. Here's a screenshot from the HTML output that shows the issue:
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