Some points on clang-format usage
Miklos Vajna
vmiklos at collabora.co.uk
Fri Dec 15 10:08:49 UTC 2017
Hi,
On Thu, Dec 14, 2017 at 11:28:57AM +0100, Stephan Bergmann <sbergman at redhat.com> wrote:
> I'm somewhat undecided whether or not to do that change to .clang-format
> now. My feeling is that reformatting of comments is a pain and a gotcha
> anyway.
Turning this on would also have the effect that e.g.
> void f() {
> statement1(); // lengthy comment comment comment comment comment comment comment comment comment
> // comment comment comment comment comment comment
> statement2();
> }
would be formatted (due to the extra -- probably unwanted -- space) as
> void f() {
> statement1(); // lengthy comment comment comment comment comment comment comment comment comment
> // comment comment comment comment comment comment
> statement2();
> }
which might be misleading as well. So leaving at as-is has some
benefits, I think.
Regards,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20171215/c7b6042a/attachment.sig>
More information about the LibreOffice
mailing list