Skip to content

A function cannot be documented as related to two classes. (Origin: bugzilla #124252) #851

@doxygen

Description

@doxygen

status NEW severity normal in component general for ---
Reported in version 1.3.x on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2003-10-09 22:48:09 +0000, bjackson@ah.ddiglobal.com wrote:

The \relates and \relates also commands cannot be used to document a global
function as related to two or more classes.

On 2003-10-09 22:48:59 +0000, bjackson@ah.ddiglobal.com wrote:

Created attachment 20614
Examples in compressed tar file.

On 2003-10-09 22:52:48 +0000, bjackson@ah.ddiglobal.com wrote:

Please see the classes in the file B.h in the attached doxygen-bug.tar.gz.

On 2018-06-16 12:49:59 +0000, albert wrote:

*** Bug 612617 has been marked as a duplicate of this bug. ***

On 2018-06-16 17:12:55 +0000, albert wrote:

We have here multiple problems:
- silently ignoring the fact that multiple use in one comment block of
\relates or \relatesalso or \memberof or a mixture is silently ignored (only
last command is active). For this I've just pushed a proposed patch to
github (pull request 767, https://github.com/doxygen/doxygen/pull/767).
- only one \relatesalso or \relates is possible. This problem remains and is
a bit more complex. For \relates it not really solvable as links cannot go
to a fixed point. For \relatesalso the fixed point can be "it at its normal
file documentation location." This would require some sort of array or
stack. It should also be seen as an error when \relates, \relates or
\memberof are mixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions