trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2014

Re: [trinity-devel] Codebase formatting discussion

From: "Timothy Pearson" <kb9vqf@...>
Date: Wed, 31 Dec 2014 13:27:34 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA224

> On 2014/12/31 02:13 PM, Timothy Pearson wrote:
>>>> Yes, we can wait a few days for your input. :-)
>>>>
>>>> The vast majority of this file was written in the style I
>>>> prefer:
>>>> https://git.trinitydesktop.org/cgit/tdelibs/tree/tdecore/tdehw/tdehardwaredevices.cpp?id=f27e71dcb162e37234ea98570379f60f8afdd8ea
>>>>
>>>>
>>>>
> I noticed on quick glance that at least one alternate styles snuck in
>>>> over time, so the revision ID specified in that link is an
>>>> older version without many of the changes that introduced those
>>>> alternate styles.
>>>>
>>>> I find it very easy to read on mutiple screens, on the Web and
>>>> in Kate, from small laptops up to my main workstation.
>>>> Comments are of course welcome!
>>
>>> If my vote still counts, I have only one request: please do not
>>> use 8 spaces for tabs. I prefer only 2 spaces, but 4 is
>>> acceptable.
>>
>>> Darrell
>>
>> I prefer hard tabs, this way each developer can set the space the
>> way they want to see it.
>>
>> Tim
>>
> Tim, just wondering. What tool do you use to reformat existing code?
> Cheers
>   Michele

AStyle.  In fact I was working on this in late 2012:
https://git.trinitydesktop.org/cgit/scripts/tree/astyle

Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iFYEARELAAYFAlSkTiYACgkQLaxZSoRZrGE3ZADaAgVGLYGIl/jxlUs9jMDlq5EY
k4RMQO7Iyq+Y/QDfVi8ifxeU7mqs3v/x8PTELP3bd7Q8pMmt/mq8Zg==
=9sLo
-----END PGP SIGNATURE-----