Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 20 and Version 21 of code/C++_styleguide


Ignore:
Timestamp:
Sep 20, 2008, 5:53:56 PM (16 years ago)
Author:
rgrieder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/C++_styleguide

    v20 v21  
    8787{{{
    8888/**
    89     @file
    90     @brief A brief description.
    91 
    92     More description...
     89@file
     90@brief
     91    A brief description.
     92
     93    More description... (new paragraph after @brief)
    9394*/
    9495}}}
    9596Note: 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=== Functions ===
     99Doxygen documentation (javadoc like for C++) is placed in the source file, just above the function header. If the function is inline, place the comment there but keep it short. [[br]]
     100When writing documentation in the source file don't make it all jam-packed to enhance readability. Here is an example to demonstrate formatting:
     101{{{
     102/**
     103@brief
     104    A brief description.
     105    More brief description.
     106
     107    Details follow here.
     108    Maybe an example or something.
     109@param param1
     110    Parameter description for parameter named 'param1'
     111@param param2
     112    Parameter description for parameter named 'param2'
     113@note
     114    Something important to remember.
     115@author
     116    The mighty whoever
     117*/
    96118
    97119== Naming Conventions ==