lilypond-devel
[Top][All Lists]
Advanced

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

Re: Adapt fixcc.py to use Astyle instead of emacs (issue4662074)


From: Graham Percival
Subject: Re: Adapt fixcc.py to use Astyle instead of emacs (issue4662074)
Date: Sun, 3 Jul 2011 14:39:16 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Jul 03, 2011 at 02:25:12PM +0100, Neil Puttock wrote:
>    Matrix<T, A> (vsize rows, vsize columns, T const &t)
> -  : data_(rows * columns, t)
> +    : data_ (rows *columns, t)
> 
> misinterpreted multiplication sign

heh, that one's funny!

> --- a/flower/include/rational.hh
> +++ b/flower/include/rational.hh
> @@ -74,7 +74,8 @@ public:
>    Rational (Rational const &r) { copy (r);}
>    Rational &operator = (Rational const &r)
>    {
> -    copy (r); return *this;
> +    copy (r);
> +    return *this;
>    }

That looks fine?  astyle has a specific option to
--keep-one-line-statements, but I think those are evil?

> -        b3:
> +b3:
> 
> goto label unindented

We could use --indent-labels for this

> --- a/lily/audio-item.cc
> +++ b/lily/audio-item.cc
> @@ -39,18 +39,12 @@ Audio_item::get_column () const
>  }
> 
>  Audio_item::Audio_item ()
> -  : audio_column_ (0)
> -  , channel_ (0)
> +  : audio_column_ (0), channel_ (0)
>  {
>  }
> 
> ctor init list move to single line

I'm surprised astyle gets this wrong!

Cheers,
- Graham



reply via email to

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