Commit c22df64f by David Malcolm Committed by David Malcolm

gengtype: Ignore access-control keywords when parsing fields

	* gengtype-parse.c (struct_field_seq): Ignore access-control
	keywords ("public:" etc).

From-SVN: r203708
parent f24bb080
2013-10-16 David Malcolm <dmalcolm@redhat.com>
* gengtype-parse.c (struct_field_seq): Ignore access-control
keywords ("public:" etc).
2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
......
......@@ -733,6 +733,17 @@ struct_field_seq (void)
{
ty = type (&opts, true);
/* Ignore access-control keywords ("public:" etc). */
while (!ty && token () == IGNORABLE_CXX_KEYWORD)
{
const char *keyword = advance ();
if (strcmp (keyword, "public:") != 0
&& strcmp (keyword, "private:") != 0
&& strcmp (keyword, "protected:") != 0)
break;
ty = type (&opts, true);
}
if (!ty || token () == ':')
{
consume_until_eos ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment