Lines Matching refs:next

620 		token = token->next;
629 bad_token.next = token;
637 return token->next;
731 (match_op(token->next,';') || match_op(token->next,'{')))) {
741 token = token->next;
765 token = parse(token->next, sym);
922 struct token *next = token->next;
927 next = handle_attributes(next, &ctx);
929 if (match_op(next, '=')) {
930 next = constant_expression(next->next, &expr);
1000 token = next;
1006 token = token->next;
1057 if (lookup_type(token->next)) {
1059 token = typename(token->next, &sym, NULL);
1064 token = parse_expression(token->next, &typeof_sym->initializer);
1163 struct token *next;
1168 next = primary_expression(token, &expr);
1174 next = token->next;
1178 next = token->next;
1191 token = expect(next, ')', "after address_space attribute");
1262 token = token->next;
1280 token = token->next;
1321 token = token->next;
1335 token = attr->op->attribute(token->next, attr, ctx);
1341 token = token->next;
1356 static struct token *storage_specifier(struct token *next, struct symbol *sym, struct decl_state *ctx)
1364 sparse_error(next->pos, "__thread cannot be used with '%s'", storage);
1368 sparse_error(next->pos, "duplicate %s", storage);
1370 sparse_error(next->pos, "multiple storage classes");
1371 return next;
1374 static struct token *thread_specifier(struct token *next, struct symbol *sym, struct decl_state *ctx)
1378 apply_qualifier(&next->pos, &ctx->ctype, MOD_TLS);
1380 sparse_error(next->pos, "__thread cannot be used with '%s'",
1384 return next;
1401 if (lookup_type(token->next)) {
1403 token = typename(token->next, &sym, NULL);
1428 static struct token *generic_qualifier(struct token *next, struct symbol *sym, struct decl_state *ctx)
1430 apply_qualifier(&next->pos, &ctx->ctype, sym->ctype.modifiers);
1431 return next;
1513 t = t->next;
1537 token = token->next;
1565 token = token->next;
1611 token = token->next;
1613 if (match_op(token, '*') && match_op(token->next, ']')) {
1615 token = token->next;
1640 token = token->next;
1663 token = token->next;
1666 token = token->next;
1674 token = token->next;
1683 token = expect(token->next, '(', "after attribute");
1689 token = token->next;
1700 token = attribute_specifier(token->next, NULL, ctx);
1714 struct token *next = token->next;
1716 *p = next = skip_attributes(next);
1718 if (token_type(next) == TOKEN_IDENT) {
1719 if (lookup_type(next))
1724 if (match_op(next, ')') || match_op(next, SPECIAL_ELLIPSIS))
1738 struct token *next = token->next;
1740 if (token_type(next) == TOKEN_IDENT) {
1741 if (lookup_type(next))
1750 if (token_type(next) != TOKEN_SPECIAL)
1753 if (next->special == ')') {
1755 if (!n || match_op(next->next, ';') || match_op(next->next, ','))
1758 warning(next->pos,
1764 if (next->special == SPECIAL_ELLIPSIS) {
1765 warning(next->pos,
1776 struct token *next;
1781 token = token->next;
1783 is_nested(token, &next, ctx->prefer_abstract)) {
1785 if (token->next != next)
1786 next = handle_attributes(token->next, ctx);
1787 token = declarator(next, ctx);
1799 token = token->next;
1812 token = abstract_array_declarator(token->next, array);
1834 token = handle_qualifiers(token->next, ctx);
1857 return conditional_expression(token->next, &expr);
1861 token = conditional_expression(token->next, &expr);
1918 token = token->next;
1937 token = token->next;
1988 if (match_op(token->next, ':') || match_op(token->next, ')'))
1989 return token->next;
1992 if (match_op(token->next, '[') &&
1993 token_type(token->next->next) == TOKEN_IDENT &&
1994 match_op(token->next->next->next, ']')) {
1995 op->name = token->next->next->ident;
1996 token = token->next->next->next;
1998 token = token->next;
2012 token = primary_expression(token->next, &expr);
2025 token = token->next; /* skip ':' and ',' */
2030 token = token->next;
2039 token = token->next;
2047 token = token->next;
2067 token = expect(token->next, '(', "after _Static_assert");
2072 token = token->next;
2226 return expression_statement(token->next, &stmt->ret_value);
2247 token = expect(token->next, '(', "after 'for'");
2281 token = parens_expression(token->next, &expr, "after 'while'");
2298 token = statement(token->next, &iterator);
2300 token = token->next;
2318 token = parens_expression(token->next, &stmt->if_conditional, "after if");
2324 return statement(token->next, &stmt->if_false);
2337 token = parse_expression(token->next, &stmt->case_expression);
2339 token = parse_expression(token->next, &stmt->case_to);
2345 return case_statement(token->next, stmt);
2355 return expect(token->next, ';', "at end of statement");
2362 token = parens_expression(token->next, &stmt->switch_expression, "after 'switch'");
2392 token = token->next;
2394 token = parse_expression(token->next, &stmt->goto_expression);
2400 token = token->next;
2410 token = token->next;
2416 token = token->next;
2429 token = token->next;
2459 if (match_op(token->next, ':')) {
2461 token = handle_label_attributes(token->next->next, s);
2485 token = compound_statement(token->next, stmt);
2501 token = token->next;
2504 token = token->next;
2514 token = label_statement(token->next);
2547 token = token->next;
2552 token_type(token->next) != TOKEN_IDENT ||
2553 lookup_type(token->next))
2555 token = token->next;
2569 token = token->next;
2584 token = token->next;
2625 struct token *next = token->next;
2631 if ((token_type(token) == TOKEN_IDENT) && match_op(next, ':')) {
2635 token = initializer(&expr->ident_expression, next->next);
2641 for (tail = ep, nested = 0; ; nested++, next = token->next) {
2642 if (match_op(token, '.') && (token_type(next) == TOKEN_IDENT)) {
2643 struct expression *expr = identifier_expression(next);
2647 token = next->next;
2650 token = constant_expression(token->next, &from);
2656 token = constant_expression(token->next, &to);
2693 token = token->next;
2704 struct token *next = token->next;
2707 if (match_token_zero(next)) {
2708 if (match_op(next->next, '}'))
2713 token = initializer_list(&expr->expr_list, token->next);
2770 token = statement_list(token->next, &stmt->stmts);
2859 token = token->next;
2912 return token->next;
2987 struct token *next = token->next;
2988 token = initializer(&decl->initializer, next);
2989 if (token == next)
3036 token = token->next;