THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Separate inline headers: We allow putting inline functions in separate files, using the suffix
-inline.h
or-impl.h
or.inline.h
. - Pros: ??
- Cons: ??
Scoping
- namespaces use of anonymous namespaces are not recommended.
- Pros: ??
- Cons: naming conflicts can occur between object files
using namespace
directive is encouraged in .cc files- Pros: reduces code volume
- Cons: pollutes the namespace, causes conflicts, makes it more difficult to determine the type of an object
Classes
...
- Pros: None
- Cons: undesirable conversions
...
- Pros: easier use with the STL
- Cons: implicit copying of objects in C++ is a rich source of bugs and of performance problems
...
Functions
- default function arguments we use default function arguments
- Pros: clean syntax, reduced code volumne
- Cons: function pointers are confusing in the presence of default arguments
int x = (int) y;
- Pros: clean syntax
- Cons: ambiguous operator
Formatting
- Line Length We use 90 character line lengths
- TODO Comments we do not include the name in the TODO comment
- Function Declaration we line wrap differently than google, for example do:
...