Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Legend:

Unmodified
Added
Removed
Modified
  • code/C++_styleguide

    v23 v24  
    107107    Maybe an example or something.
    108108*/
     109class ClassName
     110{
     111    ...
     112}}}
     113
     114=== Class Members ===
     115Add a brief description to every member of a class:
     116{{{
     117    private:
     118        int value_;           //!< A brief description
     119        int longerValueName_; //!< A brief description
     120}}}
     121The < after //! indicates that the member is located in front of the comment instead of after the comment.
     122
     123If you need a more detailed description, use:
     124{{{
     125    private:
     126        int value_; //!< A detailed description
     127                    //!< More detailed description
     128                    //!< ...
     129}}}
     130or
     131{{{
     132    private:
     133        int value_; /**<
     134                        A detailed description
     135                        More detailed description
     136                        ...
     137                    */
    109138}}}
    110139
     
    131160    The mighty whoever
    132161*/
     162returntype functionname(type1 param1, type2 param2)
     163{
     164    ...
    133165}}}
    134166
     
    137169{{{
    138170/** @brief A brief description. @param param1 description [...] @return description */
     171inline returntype functionname(type1 param1 [, ...]) { ... }
    139172}}}
    140173