On Thu, May 27, 2021 at 08:30:33PM +0200, Tobias Burnus wrote:
> + if (c_parser_next_token_is (parser, CPP_NAME))
> + {
> + const char *p = IDENTIFIER_POINTER (c_parser_peek_token
> (parser)->value);
> + bool parse_iter = (strcmp ("iterator", p) == 0);
> + if (parse_iter)
I'd add here && c_parser_peek_2nd_token (parser)->type == CPP_OPEN_PAREN
> + if (parse_iter)
And similarly here && cp_lexer_nth_token_is (parser->lexer, 2, CPP_OPEN_PAREN)
Otherwise LGTM, but please give Joseph some time to comment on the new
function.
Jakub