Doxygen auto param generate

1.1k views Asked by At

Is there any tool or plugin for visual studio c++ to generate an auto pre-structure of doxygen comments, based on the definition of function?

Thank you.

something like this example:

/**
 *****************************************************************************************
 *  @brief      
 *
 *  @usage      
 * 
 *  @param      
 *  @param      
 *
 *  @return     
 ****************************************************************************************/

int TestAPI2(
    int argument1,
    int argument2
    );
1

There are 1 answers

1
Denise Skidmore On BEST ANSWER

I'd suggest instead you document inline with the parameters

int TestAPI2(
    int argument1, /**< does this **/
    int argument2 /**< does that, should never be a prime number, 
                       and I keep wanting to go on and on about it. **/
    );

Any tool that automatically documents the parameters will produce useless documentation someone else has to fill in anyway.

You can set WARN_NO_PARAMDOC = YES in your doxygen file if you want a list of parameters that have not been documented.

That said, you could try Gostdoc if you have some process constraint where meaningless comments are "better" than no comments.