Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Objective-C what utility uses @brief tag in comments?

I just started programming in Objective-C and found some example comments like the following:

/*!
@brief The UIImageView we use to display the image generated from the imageBuffer
*/

What is the purpose of @brief? Is this something related to a documentation system like Doxygen?

like image 908
vgonisanz Avatar asked May 29 '12 10:05

vgonisanz


3 Answers

Yes. That is the standard format for a function description in doxygen, using the command @brief for a brief explanation.

Maybe you are more familiar with the expression \brief, but @brief is allowed too. You have all the variations explained in this section of the manual.

Putting the command @brief will generate a short description of the function when you generate the doxygen documentation. That short description can be extended if you want.

like image 143
Jav_Rock Avatar answered Oct 23 '22 04:10

Jav_Rock


Also this tag enable you to display your comments in Quick Help in Xcode.

enter image description here

Almost full pattern is:

/**
 @brief Example usage:
 @code
 @endcode
 @param param
 */
like image 22
Mike Glukhov Avatar answered Oct 23 '22 05:10

Mike Glukhov


Yes, this is a doxygen tag indeed.

like image 23
MByD Avatar answered Oct 23 '22 05:10

MByD