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


On 11/17/2017 10:54 AM, Miklos Vajna wrote:
Thanks for mentioning this. I also noticed something similar with
initializer lists, where

Foo::Foo()
     : foo(1), // foo
       bar(2) // bar
{
}

gets reformatted to:

Foo::Foo()
     : foo(1)
     , // foo
     bar(2) // bar
{
}

but the ideal form is probably

Foo::Foo()
     : foo(1) // foo
     , bar(2) // bar
{
}

instead.

...which might be reason enough to still revisit the .clang-format rule that causes leading commas, if that wrecks such havoc with comments?

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.