On 18/07/2019 15:43, Tamas K Lengyel wrote:
> diff --git a/CODING_STYLE b/CODING_STYLE
> index 6cc5b774cf..0b37f7ae4d 100644
> --- a/CODING_STYLE
> +++ b/CODING_STYLE
> @@ -60,8 +60,8 @@ Bracing
>  -------
>  
>  Braces ('{' and '}') are usually placed on a line of their own, except
> -for the do/while loop.  This is unlike the Linux coding style and
> -unlike K&R.  do/while loops are an exception. e.g.:
> +for the while-part of do/while loops.  This is unlike the Linux coding style
> +and unlike K&R.  do/while loops are an exception. e.g.:
>  
>  if ( condition )
>  {
> @@ -77,7 +77,8 @@ while ( condition )
>      /* Do stuff. */
>  }
>  
> -do {
> +do
> +{

I'd happily take this adjustment to Xen's style if it helps us end up
with auto-formatter.

Also, there are a number of files which are technically Linux style, but
have totally diverged from Linux, and would be easier to move to Xen style.

Do you have an updated .astylerc based on Julien's observations?

ISTR someone saying that the maintainer of astyle was very happy taking
additions, if we need to go along that route.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to