From 80ed045444ad3d53edd44eefd75e80d263ae0387 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Sun, 6 May 2018 13:44:01 +0200 Subject: [PATCH] doc: update the HACKING document with a rule for casts Fixes #1032 --- HACKING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HACKING.md b/HACKING.md index b1d253cb..631d4464 100644 --- a/HACKING.md +++ b/HACKING.md @@ -38,6 +38,9 @@ Variables should be named like this: `my_variable_name`, not like this: `MyVariableName`. In pointer variable declarations, place the `*` next to the variable name, not the type. +When casting variables from one type to another, put a space after the +last closing brace. + When using an if, do, while, or for statement, always use the { } braces even when they are not necessary. For example, do this: