From 4a8554fe08ce0491cf64514ad374fd118066ed1b Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 00:10:22 +0100 Subject: more style rules --- CONTRIBUTING.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e946c8d..b4b04f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -117,3 +117,21 @@ x++ Even if they are not strictly needed due to operator precedence rules, prefer adding extra ()'s around tests for clarity, with parcimony. + +### c++ cast + +don't use reinterpret_cast<>, static_cast<> or const_cast<>. + +### pointer declaration + +prefer ```const T* name``` to ```const T *name```. + +### 'auto' type + +Don't use 'auto' as type, unless for complex iterators or very complex +types. + +### don't use trailing spaces + +don't. + -- cgit v1.2.3