C++ parser: Should we get rid of cp_parser_declarator_id?

Mark Mitchell mark@codesourcery.com
Thu Dec 8 04:22:00 GMT 2005


Volker Reichelt wrote:

> Shouldn't we fold cp_parser_declarator_id into the caller and call
> cp_parser_id_expression directly?

Originally, I was trying to have a function for each non-terminal.  I'm
not going to be dogmatic about that, but is there a good reason to
remove the function?  As Gaby says, perhaps we could mark the function
inline, if you're worried about performance?

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc mailing list