Browse Source

Coding standards to address auto usage.

cl-refactor
Gav Wood 10 years ago
parent
commit
2ee8a6d269
  1. 1
      CodingStandards.txt

1
CodingStandards.txt

@ -116,6 +116,7 @@ g. Never use a macro where adequate non-preprocessor C++ can be written.
h. Make use of auto whenever type is clear or unimportant:
- Always avoid doubly-stating the type.
- Use to avoid vast and unimportant type declarations.
- However, avoid using auto where type is not immediately obvious from the context, and especially not for arithmetic expressions.
i. Don't pass bools: prefer enumerations instead.
j. Prefer enum class to straight enum.

Loading…
Cancel
Save