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

Matthew Woehlke mwoehlke.floss at gmail.com
Thu Oct 17 23:51:00 CEST 2019


On 17/10/2019 17.24, Ville Voutilainen wrote:
> On Fri, 18 Oct 2019 at 00:16, André Pönitz <apoenitz at t-online.de> wrote:
>>
>> On Thu, Oct 17, 2019 at 09:04:36PM +0300, Ville Voutilainen 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?
>>
>> No.
> 
> Why?
> 
>>
>> And it's not "just our style".
> 
> LLVM uses the same style for stars and ampersands. Who else?

https://github.com/uncrustify/uncrustify uses stars-with-variable. (That
said, my own code, both personal and professional, typically uses
stars-with-type.)

-- 
Matthew



More information about the Development mailing list