From: Joel Rosdahl Date: Sat, 4 Jun 2016 15:49:57 +0000 (+0200) Subject: code style: Mention usage of curly braces around if/for/while/do bodies X-Git-Tag: v3.2.6~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a3534db3e337e53c551648edce4543709db541f;p=thirdparty%2Fccache.git code style: Mention usage of curly braces around if/for/while/do bodies --- diff --git a/HACKING.txt b/HACKING.txt index 01cdd4760..175871a4f 100644 --- a/HACKING.txt +++ b/HACKING.txt @@ -10,6 +10,8 @@ Code formatting at the end of the same line. * Put no space between function name and the following parenthesis. * Put one space between if/switch/for/while/do and opening curly brace. +* Always use curly braces around if/for/while/do bodies, even if they only + contains one statement. * If possible, keep lines at most 80 character wide for a 2 character tab width. * Use only lowercase names for functions and variables.