GNOME Bugzilla – Bug 759402
C++11 "using" type alias for function pointer with no arguments is formatted incorrectly
Last modified: 2016-12-29 18:45:45 UTC
The following code produces documentation where the type alias is formatted incorrectly. -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- /// \file /// function pointer using FunctionPointer = void(*)(); -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- This produces a documentation that looks like this: > using FunctionPointer) = void(*)( While it should look like this: > using FunctionPointer = void(*)() The same is true for type alias for function reference. This happens only when the function takes no arguments and if there is no space between parentheses. Following two type aliases produce correct documentation: > using FunctionPointer = void(*)( ); // space between parentheses > using FunctionPointer = void(*)(char); // function takes arguments
Confirmed. Should be fixed by this GIT commit: https://github.com/doxygen/doxygen/commit/d4c24c28ffcf7143bcdfecee1c8b55f704274d37
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.13. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).