Changeset 603:86458ad390a7 in lemon-0.x for doc/coding_style.dox
- Timestamp:
- 05/11/04 11:30:06 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@784
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/coding_style.dox
r509 r603 3 3 \page coding_style Hugo Coding Style 4 4 5 \todo More detailed description, an introductory paragraph, etc. 6 7 \section Naming Convenions 5 \section Naming Conventions 8 6 9 \subsection Classes 7 In order to make development easier we have made some conventions according to coding style. These include names of types, classes, functions, variables, constants and exceptions. If these conventions are met in one's code then it is easier to read and maintain it. Please comply with these conventions if you want to contribute developing Hugo library. 8 9 \subsection Classes and other types 10 11 The name of a class or any type should look like the following: 10 12 11 13 \code … … 13 15 \endcode 14 16 15 \subsection Methods 17 \subsection Methods and other functions 18 19 The name of a function should look like the following: 16 20 17 21 \code … … 19 23 \endcode 20 24 21 \subsection Constants 25 \subsection Constants, Macros 26 27 The names of constants and macros should look like the following: 22 28 23 29 \code … … 25 31 \endcode 26 32 27 \subsection %Class and instance member variables33 \subsection Class and instance member variables, auto variables 28 34 29 \code 30 all_lower_case_with_underscores 31 \endcode 32 33 \subsection Auto variables (=variables used locally in methods) 35 The names of class and instance member variables and auto variables (=variables used locally in methods) should look like the following: 34 36 35 37 \code … … 39 41 \subsection Exceptions 40 42 43 When writing exceptions please comply the following naming conventions: 44 41 45 \code 42 46 ClassNameEndsWithException
Note: See TracChangeset
for help on using the changeset viewer.