Skip to content

Commit 7c4b5aa

Browse files
authored
Merge pull request #2568 from tautschnig/vs-parameter-names
Document proposed best practice for unused parameters
2 parents ef3eb4f + 440ceb6 commit 7c4b5aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CODING_STANDARD.md

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ Formatting is enforced using clang-format. For more information about this, see
9595
# Naming
9696
- Identifiers may use the characters `[a-z0-9_]` and should start with a
9797
lower-case letter (parameters in constructors may start with `_`).
98+
- Omit names of parameters or exception objects when they are not used. If
99+
parameter names help documenting an interface, keep the name and use
100+
`(void)parameter_name;` in the body of the method.
98101
- Use American spelling for identifiers.
99102
- Separate basic words by `_`
100103
- Avoid abbreviations (e.g. prefer `symbol_table` to `st`).

0 commit comments

Comments
 (0)