4

Is it possible to group function parameters in Doxygen documentation so that I don't have to duplicate the comment? For example I want something like:

/**
  <...>
  @param {{a, b}} <long documentation>
*/

Doxygen output:

<...>
Parameters:

  a,b - <long documentation>

1 Answer 1

6

Yes, you can just pass a comma separated list of parameters with @param, like so:

/** Sets the object's position.
 *  @param x,y,z Coordinates of the position in 3D space.
 */
void setPosition(double x,double y,double z)
{
}

And it will appear in the output as you would expect.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.