Skip to content

How to copydoc documentation of functions with spaces? #11169

@Xeverous

Description

@Xeverous

Describe the bug
On https://www.doxygen.nl/manual/commands.html#cmdcopydoc, it is described that if one wants to copy a documentation of specific overload: "should specify the argument types explicitly (without spaces!)" //! @copydoc MyClass::myfunction(type1,type2)

How am I supposed to @copydoc an overload that takes unsigned long then? Is this not supported?

To Reproduce
In my specific case, I have a code that looks like this:

/**
 * @brief X
 */
struct X
{
	/**
	 * @brief desc
	 * @return true
	 */
	explicit operator bool() const &
	{
		return true;
	}
};

/**
 * @brief Y
 */
struct Y
{
	/**
	 * @copydoc X::operator bool() const &
	 */
	explicit operator bool() const &
	{
		return true;
	}
};

and it generated the following error: warning: @copybrief or @copydoc target 'X::operator' not found. Looks like Doxygen stops on the "operator" word and does not parse further. Is this intended?

Expected behavior
Support for complex overload sets with const and reference qualifiers, including convertion operators.

Version
Doxygen: 1.9.8 (c2fe5c3e4986974eb2a97608b24086683502f07f)
OS:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal

Binary taken from the website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions