indent(1): if an identifier can be either a typedef name or as a struct

member, it is taken as the latter
This commit is contained in:
Piotr Pawel Stefaniak 2018-06-03 19:05:20 +00:00
parent 01a206e63c
commit 2364d1a74e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334583
4 changed files with 11 additions and 1 deletions

View File

@ -321,6 +321,10 @@ lexi(struct parser_state *state)
/* inside parens: cast, param list, offsetof or sizeof */
state->cast_mask |= (1 << state->p_l_follow) & ~state->not_cast_mask;
}
if (state->last_token == period || state->last_token == unary_op) {
state->keyword = 0;
break;
}
if (p != NULL && p->rwcode == 3)
return (structure);
if (state->p_l_follow)

View File

@ -21,4 +21,7 @@ test(void)
char *xxx = firstf(secondf2(p1,
p2));
}
rb->allocfunc(1);
rb2.allocfunc(7);
}

View File

@ -1,2 +1,2 @@
/* $FreeBSD$ */
-ts4 -i4 -di12
-ts4 -i4 -di12 -Tallocfunc

View File

@ -21,4 +21,7 @@ test(void)
char *xxx = firstf(secondf2(p1,
p2));
}
rb->allocfunc(1);
rb2.allocfunc(7);
}