From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45826 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnSBP-0007H4-Nl for qemu-devel@nongnu.org; Mon, 23 Aug 2010 04:15:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnSBO-0004Hk-FN for qemu-devel@nongnu.org; Mon, 23 Aug 2010 04:15:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30379) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnSBO-0004Hb-8K for qemu-devel@nongnu.org; Mon, 23 Aug 2010 04:15:06 -0400 Message-ID: <4C722E00.80405@redhat.com> Date: Mon, 23 Aug 2010 10:14:56 +0200 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments References: <4C6A4291.1020105@redhat.com> <4C6A8CD8.2080701@codemonkey.ws> <4C715317.5020007@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Blue Swirl , Miguel Di Ciurcio Filho , Markus Armbruster , qemu-devel On 08/22/10 20:39, malc wrote: > Disregarding my own stance on the braces, braces around single statement > is actually helpful w.r.t. debugging imaging trying to set a break point > on said singlesttement, plain impossible in following case: > > if (a) b; Oh there is no talk about suggesting we force things onto a single line. Putting if(foo) bar(); on the same line is just plain wrong, what I referred to was this: if (foo) bar(); vs if (foo) { bar(); } If it is part of a multi-block if()/else block yes it's good for consistency, if it is a one off in the code, it doesn't add any value IMHO, it is a loss because it wastes space for no reason. Cheers, Jes