This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Jan 26, 2011 at 12:25:31AM +0000, Joseph S. Myers wrote: > On Mon, 24 Jan 2011, Nathan Froyd wrote: > > +/* Return true if KEYWORD names a decl-specifier [dcl.spec] or a > > + declaration-specifier (C99 6.7). */ > > + > > +bool > > +keyword_is_decl_specifier (enum rid keyword) > > +{ > > + if (keyword_is_storage_class_specifier (keyword) > > + || keyword_is_type_qualifier (keyword) > > + || keyword_is_function_specifier (keyword)) > > + return true; > > Did you mean to exclude type specifiers here? I did mean to exclude them. This is not exactly in line with the language specifications, but it is appropriate for how this function is used during parsing. Better suggestions for the name welcome. -Nathan
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |