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.

I bumped into this while using Linux's Lindent and checkpatch.pl
scripts. Checkpatch reports [3] after Lindent is used.

-- Andres

[1]
static int
function (foo_t * foo, char *bar)
{
  return 0;
}


[2]
static int
function (struct foo_s *foo, char *bar)
{
  return 0;
}

[3]
ERROR: "foo * bar" should be "foo *bar"

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

Reply via email to