On Fri, Nov 25, 2011 at 10:08:23AM -0300, Andrés More wrote:
> I noted the following issue with 'indent', I could be wrong but I
> think it is non-uniform behavior.
> When I indent code like [1], the '*' get a different placement if the
> item is a typedef.
> By the way, [2] does not suffer the same '*' realignment.
> 

indent(1) reads:

You must use the ‘-T’ option to tell indent the name of all the typenames in
your program that are defined by typedef.

And then you get uniform indentation. I guess this this because typedefs can
be defined in separate header files, so indent requires manual definition
usind -T option.

On the other hand, I cannot image situation when pointer to unknown type
should be handled specially. Maybe indent confuses it with arithmetic
expression.

-- Petr

Attachment: pgpseFAaelj0k.pgp
Description: PGP signature

_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to