From: benwu25 Date: Wed, 17 Dec 2025 13:54:00 +0000 (+0700) Subject: c++: adjust comment wording in cp_parser_init_declarator X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4320e2bf6fc15c973ea2404c5d3d947b06c8cab6;p=thirdparty%2Fgcc.git c++: adjust comment wording in cp_parser_init_declarator 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 --- diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index be01cfdefe2..d9c8cfada93 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -24888,8 +24888,8 @@ omp_maybe_record_variant_base (cp_parser* parser, tree decl) 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.