Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 11 and Version 12 of code/C++_styleguide


Ignore:
Timestamp:
Dec 5, 2007, 2:10:43 PM (16 years ago)
Author:
rgrieder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/C++_styleguide

    v11 v12  
    1010== Files ==
    1111=== Header and Source ===
    12 Keep your classes/files short, don't exceed 2000 LOC (if it get's longer you may separate functions into different modules). Put every class in a separate file and name the file like the class name (don't use !CamelCase names separate them with underlines). Create a separate header (ends with .h) and source file (ends with .cc) and don't include header files in header files but rather in source files if you can help it. Example for class {{{MyExampleClass}}}.
     12Keep your classes/files short, don't exceed 2000 LOC (if it get's longer you may separate functions into different modules). Put every class in a separate file and name the file like the class name (use !CamelCase names). Create a separate header (ends with .h) and source file (ends with .cc) and don't include header files in header files but rather in source files if you can help it. Example for class {{{MyExampleClass}}}.
    1313{{{
    1414file names:
    15 my_example_class.cc
    16 my_example_class.h
     15MyExampleClass.cc
     16MyExampleClass.h
    1717}}}
    1818