Browse Source

[doc] Link to clang-format in the developer notes

0.13
MarcoFalke 9 years ago
parent
commit
fadd048592
  1. 4
      doc/developer-notes.md

4
doc/developer-notes.md

@ -5,7 +5,9 @@ Various coding styles have been used during the history of the codebase,
and the result is not very consistent. However, we're now trying to converge to and the result is not very consistent. However, we're now trying to converge to
a single style, so please use it in new code. Old code will be converted a single style, so please use it in new code. Old code will be converted
gradually. gradually.
- Basic rules specified in src/.clang-format. Use a recent clang-format-3.5 to format automatically. - Basic rules specified in [src/.clang-format](/src/.clang-format).
Use a recent clang-format to format automatically using one of the [dev scripts]
(/contrib/devtools/README.md#clang-formatpy).
- Braces on new lines for namespaces, classes, functions, methods. - Braces on new lines for namespaces, classes, functions, methods.
- Braces on the same line for everything else. - Braces on the same line for everything else.
- 4 space indentation (no tabs) for every block except namespaces. - 4 space indentation (no tabs) for every block except namespaces.

Loading…
Cancel
Save