[Development] The age-old T* foo vs. T *foo

Konstantin Tokarev annulen at yandex.ru
Fri Oct 18 18:18:05 CEST 2019



18.10.2019, 19:11, "Sérgio Martins" <iamsergio at gmail.com>:
> On Thu, Oct 17, 2019 at 7:05 PM Ville Voutilainen
> <ville.voutilainen at gmail.com> wrote:
>>  Since we are about to do a major version upgrade, should be stop being
>>  a special snowflake in the C++ world and start attaching pointer-stars
>>  and reference-ampersands to the type instead of to the variable?
>
> Make git move the star for you at checkout time (similarly to its CRLF options).
> Git "just" needs C++ code model support.

No it doesn't, regular smudge/clean filters can do the work (e.g. by calling clang-format)

-- 
Regards,
Konstantin



More information about the Development mailing list