Skip to content

Commit ffb594e

Browse files
Merge pull request #3546 from hannes-steffenhagen-diffblue/prefer-brace-initialisers
Add brace initialisers to coding standard
2 parents f701467 + 38b1b98 commit ffb594e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CODING_STANDARD.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ Formatting is enforced using clang-format. For more information about this, see
209209
point to heap-allocated memory should be private data members of an object
210210
which safely manages the pointer. As such, `new` should only be used in
211211
constructors, and `delete` in destructors. Never use `malloc` or `free`.
212+
- Prefer brace style initialisation (i.e. `type_name{arguments...}`) over
213+
parentheses for constructor calls
212214

213215
# CProver conventions
214216
- Avoid if at all possible using irept methods like `get(ID_name)`, instead cast

0 commit comments

Comments
 (0)