Skip to content

Two relates group generates warning: found multiple \relates, \relatesalso or \memberof commands in a comment block, using last definition #10835

@scott-zhong

Description

@scott-zhong

Describe the bug
I think the change made to has introduced the warning warning: found multiple \relates, \relatesalso or \memberof commands in a comment block, using last definition. This showed up with Doxygen 1.8.15 and continues to occur on trunk (eb11063*). The resulting page seems to be correct and the 4 operators were documented.

/**
 * Test docs
 */
class Test
{
};

/**
 * \relates Test
 *
 * operator== docs
 */
///@{
operator==(Test&, Test&);

operator==(Test&, int);
///@}

/**
 * \relates Test
 *
 * operator!= docs
 */
///@{
operator!=(Test&, Test&);

operator!=(Test&, int);
///@}

To Reproduce
testcase.zip

Expected behavior
No warning produced.

Version
Doxygen 1.8.15 - trunk (eb11063*)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions