@@ -59,12 +59,13 @@ Formatting is enforced using clang-format. For more information about this, see
59
59
```
60
60
Note that the ` \file ` tag must be immediately followed by a newline in order
61
61
for Doxygen to relate the comment to the current file.
62
- - Each function should be preceded by a Doxygen comment describing that
63
- function. The format should match the [ LLVM
62
+ - Each class, member variable and function should be preceded by a Doxygen
63
+ comment describing it when it is not immediately obvious what it does. The
64
+ format should match the [ LLVM
64
65
guidelines] ( http://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments ) ,
65
- with one extension: ` \param ` and ` \return ` comments longer than a single line
66
- should have subsequent lines indented by two spaces, so that the tags stand
67
- out. An example:
66
+ with one extension: for functions, ` \param ` and ` \return ` comments longer than
67
+ a single line should have subsequent lines indented by two spaces, so that the
68
+ tags stand out. An example:
68
69
``` c++
69
70
// / This sentence, until the first dot followed by whitespace, becomes
70
71
// / the brief description. More detailed text follows. Feel free to
@@ -93,6 +94,7 @@ Formatting is enforced using clang-format. For more information about this, see
93
94
- Use #ifdef DEBUG to guard debug code
94
95
95
96
# Naming
97
+ - Identifiers should make clear the purpose of the thing they are naming.
96
98
- Identifiers may use the characters `[a-z0-9_]` and should start with a
97
99
lower-case letter (parameters in constructors may start with `_`).
98
100
- Omit names of parameters or exception objects when they are not used. If
0 commit comments