Question: Consider:

```
struct S {
    ... // Some data members
    double x, y; ///< Coordinates
    ... // More data members
}

```

The comment that I intended for `x` and `y` is interpreted by `doxygfen` to refer only to `y` (or, at least, there is not indication in the resulting documentation that it refers to both of them). I can fix this in two ways:

* Duplicate the comment. However, this would require declaring `x` and `y` on separate lines, which is less readable, since these members are logically related.
* Create a group. However, in which case `x` and `y` will appear after all the other data members in the documentation, which can be undesirable if there is logic to the particular order in which the data members appear.

Is there a way to comment members declared on one line that does not possess the weaknesses of the above methods?

Answer: 
The proper answer to your question is: encapsulate coordinates into one type, like:

```
struct Point 
{
   double x;
   double y;
};

```

Then the problem *disappears*:

```
struct S {
    ... // Some data members
    Point coordinates; ///< Coordinates
    ... // More data members
};

```

Probably after that change the comments no longer will be so necessary...
In doxygen there are some possibilities to copy documentation for items `\copy...` also linking to other documentation is possible `\ref` `\link ... \endlink`.

With the `\copydoc` we can get here:

```
struct Point 
{
   double x;  ///< x & y are coordinates. (more detailed description)
   double y;  ///< \copydoc Point::x
};

```