Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Thorsten,

On Tue, Nov 12, 2013 at 05:22:29PM +0100, Thorsten Behrens <thb@documentfoundation.org> wrote:
And along the 'have more mass-changes' idea - what about uncrustify /
astyle finally? Fscked-up aligned is at least what irks me the most
these days. :)

Did you manage to create an astyle config that matches our coding style?

Two random examples:

1) As far as I see in case a method has many parameters our codebase
just indents the next line with 4 spaces. astyle will pad the parameters
to match the leading "(".

Example:
<http://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/rtfattributeoutput.cxx#1064>

2) astyle also insists on indenting multi-line assignment (so that the
next line is padded to match the leading "=").

Example:
<http://opengrok.libreoffice.org/xref/core/writerfilter/source/rtftok/rtfsdrimport.cxx#621>

In neither of these cases it's possible to disable this behavior of
astyle; and obviously reformatting code that has a sane (no idea if we
have strong disagreements on what is sane :) ) formatting is obviously a
bad thing.

I'm happy with following some style rules, but that'll cause some pain
during backporting, so I think the reformatting shouldn't do more than
absolutely necessary.

Miklos

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.