It seems likely the original author meant to use either "and" or "for"
in this comment rather than both. We can remove the "for" to make it
slightly more clear that the declarator for the function-definition
and everything left in the function-definition would be handled here.
gcc/cp/ChangeLog:
* parser.cc (cp_parser_init_declarator): Adjust comment.
Signed-off-by: Ben Wu <soggysocks206@gmail.com>
befriended it).
If FUNCTION_DEFINITION_ALLOWED_P then we handle the declarator and
- for a function-definition here as well. If the declarator is a
- declarator for a function-definition, *FUNCTION_DEFINITION_P will
+ the rest of a function-definition here as well. If the declarator is
+ a declarator for a function-definition, *FUNCTION_DEFINITION_P will
be TRUE upon return. By that point, the function-definition will
have been completely parsed.