Searched refs:last_token (Results 1 – 11 of 11) sorted by relevance
69 int last_token; member94 b->last_token = -1; in init_buffer()107 buf->last_token = -1; in init_shared_buffer()210 tok->last_token = 0; in set_token()560 gdb_assert (src->last_token != -1); in append_tokens_without_splicing()561 gdb_assert (dest->last_token != -1); in append_tokens_without_splicing()569 if (dest->last_token == original_dest_len) in append_tokens_without_splicing()571 dest->last_token = original_dest_len + src->last_token; in append_tokens_without_splicing()578 dest->text + dest->last_token, in append_tokens_without_splicing()579 dest->len - dest->last_token); in append_tokens_without_splicing()[all …]
314 && (ps.last_token == rparen || ps.last_token == semicolon || in lexi()315 ps.last_token == decl || in lexi()316 ps.last_token == lbrace || ps.last_token == rbrace)) { in lexi()
217 ps.last_token = semicolon; in main()599 if (ps.last_token != comma || ps.p_l_follow > 0 in main()610 (ps.last_token != ident || proc_calls_space in main()614 if (troff && !ps.dumped_decl_indent && !is_procname && ps.last_token == decl) { in main()809 if (ps.last_token == rparen && rparen_count == 0) in main()996 if (ps.last_token == rparen && ps.tos <= 1) { in main()1284 ps.last_token = type_code; in main()
224 int last_token; member
159 static enum cpp_ttype last_token; variable274 last_token = c_lex (&last_token_id);277 switch (last_token)1524 if (last_token == CPP_EOF)1526 else if (last_token == CPP_CHAR || last_token == CPP_WCHAR)1531 const char *const ell = (last_token == CPP_CHAR) ? "" : "L";1540 else if (last_token == CPP_STRING1541 || last_token == CPP_WSTRING)1543 else if (last_token == CPP_NUMBER)1545 else if (last_token == CPP_NAME)[all …]
734 clang::Token &last_token = m_tokens[range.end_index - 1]; in GetTextForRange() local736 clang::SourceLocation end_loc = last_token.getLocation(); in GetTextForRange()738 unsigned end_pos = end_loc.getRawEncoding() + last_token.getLength(); in GetTextForRange()
3284 static enum cpp_ttype last_token;3580 if (last_token == CPP_EOF)3582 else if (last_token == CPP_CHAR || last_token == CPP_WCHAR)3585 const char *const ell = (last_token == CPP_CHAR) ? "" : "L";3591 else if (last_token == CPP_STRING3592 || last_token == CPP_WSTRING)3594 else if (last_token == CPP_NUMBER)3596 else if (last_token == CPP_NAME)3599 error ("%s before '%s' token", string, NAME(last_token));3639 last_token = CPP_STRING; /* so yyerror won't choke */[all …]
12076 * cpphash.c (collect_expansion): Make sure to reset last_token
1103 const char *last_token = "";1283 last_token = fcode->name;1293 depth(), last_token);1295 last_token = "";
127 cp_token_position GTY ((skip)) last_token;320 lexer->last_token = pos; in cp_lexer_new_main()346 lexer->last_token = last; in cp_lexer_new_from_tokens()596 if (token == lexer->last_token) in cp_lexer_peek_nth_token()629 if (lexer->next_token == lexer->last_token) in cp_lexer_consume_token()669 if (tok == lexer->last_token) in cp_lexer_purge_token()689 peek = lexer->last_token; in cp_lexer_purge_tokens_after()
1060 next_token and last_token cp_token_position. Make saved_tokens a