... | @@ -21,6 +21,9 @@ Here are gathered some good practice for coding. |
... | @@ -21,6 +21,9 @@ Here are gathered some good practice for coding. |
|
**Doxygen:**
|
|
**Doxygen:**
|
|
* Installation:
|
|
* Installation:
|
|
* download with your package manager "doxygen" and "doxygen-gui" and "graphicviz".
|
|
* download with your package manager "doxygen" and "doxygen-gui" and "graphicviz".
|
|
|
|
* Create a folder doxygen in our cm3Libraries folder. Inside cm3Libraries/doxygen, create a folder build to store the config file and for temprorary building datas.
|
|
|
|
* Launch the assistant doxygen-wizard using the config file and run doxygen.
|
|
|
|
* Enjoy
|
|
|
|
|
|
* Comment usage:
|
|
* Comment usage:
|
|
* "//!" is related to a comment of "level 1" appearing in Doxygen. It corresponds to general comments (related to the interface, the purpose or the goal of the function but not to the practical implementation (otherwise, use "//" instead)).
|
|
* "//!" is related to a comment of "level 1" appearing in Doxygen. It corresponds to general comments (related to the interface, the purpose or the goal of the function but not to the practical implementation (otherwise, use "//" instead)).
|
... | @@ -28,8 +31,17 @@ Here are gathered some good practice for coding. |
... | @@ -28,8 +31,17 @@ Here are gathered some good practice for coding. |
|
* "//" is related to a practical implementation comment that is not visible inside Doxygen (i.e. giving some practical details of the implementation)
|
|
* "//" is related to a practical implementation comment that is not visible inside Doxygen (i.e. giving some practical details of the implementation)
|
|
* "//! \todo bla bla bla bla" is a Doxygen tag for remaining tasks that can be highlight and gathered in a particular section in Doxygen.
|
|
* "//! \todo bla bla bla bla" is a Doxygen tag for remaining tasks that can be highlight and gathered in a particular section in Doxygen.
|
|
* Class and function documentation:
|
|
* Class and function documentation:
|
|
*
|
|
* You can add to a class/function/member a (brief) description by introducing a doxygen comment of level 1 on the line before the declaration. (You can do it after on the same line using "//!<", which is pratical for enum type for example).
|
|
|
|
* For the class description, use:
|
|
|
|
> /* \class MyClass
|
|
|
|
> * detailed description
|
|
|
|
> * bla bla
|
|
|
|
> * bla bla
|
|
|
|
> */
|
|
|
|
> class MyClass
|
|
|
|
* For a member function, you can add a detailed description in addition to a brief one by using level 2 doxygen comment just after the level 1 or inside the function implementation.
|
|
|
|
* You can group functions or variables together inside a same group by starting with the bookmark "//! @name My group" and closing it with "//! @}"
|
|
|
|
* CodeLite is able to indentify doxygen comments and bookmarks and allow to generate automatic doxygen comments.
|
|
|
|
|
|
|
|
|
|
|
|
|
... | | ... | |