Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 22 and Version 23 of code/C++_styleguide


Ignore:
Timestamp:
Sep 20, 2008, 6:03:45 PM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/C++_styleguide

    v22 v23  
    9595}}}
    9696Note: try not to fill in the filename. It is obvious and the comment compiler (Doxygen) will do it automatically and you don't have to adjust it when renaming the file.
     97
     98=== Classes ===
     99In the header file, just above the class declaration, explain what the class does and where it is used. You could even add an example if it helps understanding the class.
     100{{{
     101/**
     102@brief
     103    A brief description.
     104    More brief description.
     105
     106    Details follow here.
     107    Maybe an example or something.
     108*/
     109}}}
    97110
    98111=== Functions ===
     
    111124@param param2
    112125    Parameter description for parameter named 'param2'
     126@return
     127    Describe what the function returns
    113128@note
    114129    Something important to remember.
     
    116131    The mighty whoever
    117132*/
     133}}}
     134
     135=== Inline Functions ===
     136Inline functions need documentation as well, but we don't want a messy headerfile. Keep the comments short and put all doxygen code on one line:
     137{{{
     138/** @brief A brief description. @param param1 description [...] @return description */
    118139}}}
    119140