qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Get coding style closer to the real world


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH] Get coding style closer to the real world
Date: Sat, 05 Dec 2009 19:33:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091203 Fedora/3.0-3.13.rc2.fc12 Thunderbird/3.0

On 12/05/2009 12:30 AM, Anthony Liguori wrote:
Paul Brook wrote:
On Monday 30 November 2009, Alexander Graf wrote:
Currently we have this stupid role of disallowing:

  if (r)
      break;

This has been discussed to death several times, in several different paces, and with no clear resolution or consensus, so I'm going to make an executive decision:

The coding style stays as-is. Braces are required. Please ensure that all patches follow the coding style. There may be exceptions, but there should be a *good* reason for deviation.


If there are real problems or ambiguities in the coding style then I am willing to consider fixing it. This particular change meets neither criteria.

By picking a single coding style we've pretty much guaranteed that most people will disagree with some of it. IMO consistency is more important.

I agree 100%.

+1'ed, and I note that although brace-happy code looks more cluttered it is a bit safer and produces cleaner patches.

--
Do not meddle in the internals of kernels, for they are subtle and quick to 
panic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]