Skip to content

Commit 440ceb6

Browse files
committed
Document proposed best practice for unused parameters
1 parent 0d7a943 commit 440ceb6

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)