]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
code style: Mention usage of curly braces around if/for/while/do bodies
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 4 Jun 2016 15:49:57 +0000 (17:49 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 4 Jun 2016 15:49:57 +0000 (17:49 +0200)
HACKING.txt

index 01cdd47603c27213395a07d1a8d1428ae6ab30fc..175871a4fecb42ecb7168dfefb1a5a067c8afeb8 100644 (file)
@@ -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.