FreeBSD/contrib/gcc/cp/parser.c
/* Parse the non-keyword Objective-C params.  */
Parse the non-keyword Objective-C params.
Parse the non - keyword Objective - C params .
static tree
cp_parser_objc_method_tail_params_opt (cp_parser* parser, bool *ellipsisp, tree* attributes)
{
  tree params = make_node (TREE_LIST);
  cp_token *token = cp_lexer_peek_token (parser->lexer);
  *ellipsisp = false;  
  while (token->type == CPP_COMMA)
    {
      cp_parameter_declarator *parmdecl;
      tree parm;
      cp_lexer_consume_token (parser->lexer);  
      token = cp_lexer_peek_token (parser->lexer);
      if (token->type == CPP_ELLIPSIS)
      {
	cp_lexer_consume_token (parser->lexer);  
	*ellipsisp = true;
	cp_parser_objc_maybe_attributes (parser, attributes);
	break;
      }
      parmdecl = cp_parser_parameter_declaration (parser, false, NULL);
      parm = grokdeclarator (parmdecl->declarator,
			     &parmdecl->decl_specifiers,
			     PARM, 0,
			     NULL);
      chainon (params, build_tree_list (NULL_TREE, parm));
      token = cp_lexer_peek_token (parser->lexer);
    }
  return params;
}
static tree cp_parser_objc_method_tail_params_opt ( cp_parser * parser , bool * ellipsisp , tree * attributes ) { tree params = make_node ( TREE_LIST ) ; cp_token * token = cp_lexer_peek_token ( parser -> lexer ) ; * ellipsisp = false ; while ( token -> type == CPP_COMMA ) { cp_parameter_declarator * parmdecl ; tree parm ; cp_lexer_consume_token ( parser -> lexer ) ; token = cp_lexer_peek_token ( parser -> lexer ) ; if ( token -> type == CPP_ELLIPSIS ) { cp_lexer_consume_token ( parser -> lexer ) ; * ellipsisp = true ; cp_parser_objc_maybe_attributes ( parser , attributes ) ; break ; } parmdecl = cp_parser_parameter_declaration ( parser , false , NULL ) ; parm = grokdeclarator ( parmdecl -> declarator , & parmdecl -> decl_specifiers , PARM , 0 , NULL ) ; chainon ( params , build_tree_list ( NULL_TREE , parm ) ) ; token = cp_lexer_peek_token ( parser -> lexer ) ; } return params ; }
Parse the non-keyword Objective-C params.
Parse the non - keyword Objective - C params .
/* APPLE LOCAL radar 3803157 - objc attribute */ /* Initially, assume no ellipsis.  */ /* Eat ','.  */ /* Eat '...'.  */ /* APPLE LOCAL radar 3803157 - objc attribute */ /*initialized=*/ /*attrlist=*/