bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting pointer declarations


From: Andreas Rishede Hyllested
Subject: Re: Formatting pointer declarations
Date: Mon, 16 Jul 2007 08:48:54 +0200

Dear David Ingamells

Thanks for fantastic Indent! I write you to suggest an addition.

Please allow me more flexibility in where to put the '*' when I
declare a pointer of some sort.  I come to realize that Indent only
supports the original usage by K&R:

int *i = 1;

as opposed to

int* i = 1;

where the '*' really makes it explicit, that we are dealing with a
variable of type "int-pointer".

Again in the declaration of the argument i, I'd prefer the '*' to
stick with the type.

static void myFunction(int * i)
{
   ...
}

However, instead of spending time discussing pros and cons, I simply
suggest that the placement of the '*' is made customizable.




--
Andreas Rishede Hyllested
mailto: andreas 'at' rishede 'dot' dk
cell: +45 5190 1829





reply via email to

[Prev in Thread] Current Thread [Next in Thread]