Changes between Version 22 and Version 23 of code/C++_styleguide
- Timestamp:
- Sep 20, 2008, 6:03:45 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/C++_styleguide
v22 v23 95 95 }}} 96 96 Note: 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 === 99 In 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 }}} 97 110 98 111 === Functions === … … 111 124 @param param2 112 125 Parameter description for parameter named 'param2' 126 @return 127 Describe what the function returns 113 128 @note 114 129 Something important to remember. … … 116 131 The mighty whoever 117 132 */ 133 }}} 134 135 === Inline Functions === 136 Inline 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 */ 118 139 }}} 119 140