@matheusbsbs / matheus-bagliano / commits / 0b0b8cd7c2
Fork 0

CodingGuidelines: Add a note to avoid assignments inside if()

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed May 23, 2008 at 01:26 UTC 0b0b8cd7c2c3df72fc3959805b035e55e1bb1270
1 file changed +2
Documentation/CodingGuidelines
+2
@@ -89,6 +89,8 @@ For C programs:
89 of "else if" statements, it can make sense to add braces to
90 single line blocks.
91
92 + - We try to avoid assignments inside if().
93 +
94 - Try to make your code understandable. You may put comments
95 in, but comments invariably tend to stale out when the code
96 they were describing changes. Often splitting a function