What's the right way to reference a parameter in Doxygen?

前端 未结 3 1368
失恋的感觉
失恋的感觉 2021-02-01 00:27

I have the following Doxygen documentation for a function:

/**
  @brief Does interesting things

  @param[in]  pfirst The first parameter: a barrel full of monke         


        
3条回答
  •  孤城傲影
    2021-02-01 00:54

    Doxygen provides the command \p for indicating that the next word is a parameter to the function. You would use it like so:

    ... the \p x and \p y coordinates are used to ...
    

    I believe by default this will be represented using a typewriter font. I don't think this currently provides any auto-linking functionality, but potentially could in the future.

    There is a related command, \a that is used to mark up member arguments. By default, it is displayed with emphasis in the text (arg)

    You can find more information about the various Doxygen Special Commands reference.

提交回复
热议问题