FreeBSD/contrib/gcc/cp/parser.c
/* Return true if the next token is a keyword for a decl-specifier.  */
Return true if the next token is a keyword for a decl-specifier.
Return true if the next token is a keyword for a decl - specifier .
static bool
cp_lexer_next_token_is_decl_specifier_keyword (cp_lexer *lexer)
{
  cp_token *token;
  token = cp_lexer_peek_token (lexer);
  switch (token->keyword) 
    {
    case RID_AUTO:
    case RID_REGISTER:
    case RID_STATIC:
    case RID_EXTERN:
    case RID_MUTABLE:
    case RID_THREAD:
    case RID_ENUM:
    case RID_CLASS:
    case RID_STRUCT:
    case RID_UNION:
    case RID_TYPENAME:
    case RID_CHAR:
    case RID_WCHAR:
    case RID_BOOL:
    case RID_SHORT:
    case RID_INT:
    case RID_LONG:
    case RID_SIGNED:
    case RID_UNSIGNED:
    case RID_FLOAT:
    case RID_DOUBLE:
    case RID_VOID:
    case RID_ATTRIBUTE:
    case RID_TYPEOF:
      return true;
    default:
      return false;
    }
}
static bool cp_lexer_next_token_is_decl_specifier_keyword ( cp_lexer * lexer ) { cp_token * token ; token = cp_lexer_peek_token ( lexer ) ; switch ( token -> keyword ) { case RID_AUTO : case RID_REGISTER : case RID_STATIC : case RID_EXTERN : case RID_MUTABLE : case RID_THREAD : case RID_ENUM : case RID_CLASS : case RID_STRUCT : case RID_UNION : case RID_TYPENAME : case RID_CHAR : case RID_WCHAR : case RID_BOOL : case RID_SHORT : case RID_INT : case RID_LONG : case RID_SIGNED : case RID_UNSIGNED : case RID_FLOAT : case RID_DOUBLE : case RID_VOID : case RID_ATTRIBUTE : case RID_TYPEOF : return true ; default : return false ; } }
Return true if the next token is a keyword for a decl-specifier.
Return true if the next token is a keyword for a decl - specifier .
/* Storage classes.  */ /* Elaborated type specifiers.  */ /* Simple type specifiers.  */ /* GNU extensions.  */