1

I have document with doxygen as follows:

/** @fn
 * Function detailed description
 *
 * @param [in]  param1_name  description of parameter1
 * @param [in]  param2_name  description of parameter2
 * @return return_name return description
 */
uint32_t function_name(uint32_t param1_name, uint32_t param2_name);

But the detailed description isn't being rendered in the doxygen html, I have followed the guidelines from the page without any luck.

4
  • Have you tried without @fn part and with one empty line between parameters and return value? Commented Apr 13, 2020 at 8:01
  • @NutCracker the @fn is here not necessary as the documentation is just before the prototype. The empty line is not required. Commented Apr 13, 2020 at 8:23
  • Which version of doxygen? Do you get any documentation of the mentioned file? Otherwise try /** \file */ at the beginning of the file. Commented Apr 13, 2020 at 8:25
  • 1
    @albert Version 1.8.17 Commented Apr 13, 2020 at 9:09

1 Answer 1

4

You do not need to use the @fn keyword if function documentation is placed just before the documented function. Try this:

/** @brief function short description 
 *
 * function longer description if need
 * @param[in]  param1_name  description of parameter1
 * @param[in]  param2_name  description of parameter2
 * @return return_name return description
 */
uint32_t function_name(uint32_t param1_name, uint32_t param2_name);
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.