llvm-gcc-4.2-2.9/gcc/cp/parser.c
/* Parse a namespace-alias-definition.

   namespace-alias-definition:
     namespace identifier = qualified-namespace-specifier ;  */
Parse a namespace-alias-definition.
Parse a namespace - alias - definition .
static void
cp_parser_namespace_alias_definition (cp_parser* parser)
{
  tree identifier;
  tree namespace_specifier;
  cp_parser_require_keyword (parser, RID_NAMESPACE, "`namespace'");
  identifier = cp_parser_identifier (parser);
  if (identifier == error_mark_node)
    return;
  cp_parser_require (parser, CPP_EQ, "`='");
  namespace_specifier
    = cp_parser_qualified_namespace_specifier (parser);
  cp_parser_require (parser, CPP_SEMICOLON, "`;'");
  do_namespace_alias (identifier, namespace_specifier);
}
static void cp_parser_namespace_alias_definition ( cp_parser * parser ) { tree identifier ; tree namespace_specifier ; cp_parser_require_keyword ( parser , RID_NAMESPACE , " " ) ; identifier = cp_parser_identifier ( parser ) ; if ( identifier == error_mark_node ) return ; cp_parser_require ( parser , CPP_EQ , " " ) ; namespace_specifier = cp_parser_qualified_namespace_specifier ( parser ) ; cp_parser_require ( parser , CPP_SEMICOLON , " " ) ; do_namespace_alias ( identifier , namespace_specifier ) ; }
Parse a namespace-alias-definition.
Parse a namespace - alias - definition .
/* Look for the `namespace' keyword.  */ /* Look for the identifier.  */ /* Look for the `=' token.  */ /* Look for the qualified-namespace-specifier.  */ /* Look for the `;' token.  */ /* Register the alias in the symbol table.  */