Skip to content

Duplicate (double) documentation generated for friend function #10828

Closed
@scott-zhong

Description

@scott-zhong

Describe the bug
Duplicate (double) documentation generated for friend function. See the following testcase

/**
 * A docs
 */
class A
{
public:
    friend A operator*(const A& x, const A& y);
};

/**
 * \relates A
 * 
 * A operator* docs
 */
A operator*(const A& x, const A& y);

/**
 * B docs
 */
template <typename T>
class B
{
public:
    /**
     * B operator* docs
     */
    T operator*(void) const
    {
        return T();
    }
};

A operator*() is documented twice in Doxygen 1.8.18 - Doxygen trunk (eb11063*)

Screenshots
Doxygen 1.8.17:
image

Doxygen 1.8.18 - trunk (eb11063*)
image

To Reproduce
testcase.zip

Expected behavior
Single instance of A operator*() documentation

Version
1.8.18 - trunk (eb11063*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions