[GCC-XML] gccxml 0.9 doesn't parse enum values

sundar amsundarn85 at gmail.com
Fri Aug 3 01:28:41 EDT 2012


I have a header file with the following enum definition. 

enum Example
{
one = 10,
two = 12,
three = 13
};

When I parse using gccxml 0.9 version, I get the following output in xml.
 <Enumeration id="_49" name="Example" context="_1" location="f0:135" file="f0"
line="135" size="32" align="32">
    <EnumValue name="one" init="0"/>
    <EnumValue name="two" init="1"/>
    <EnumValue name="three" init="2"/>
  </Enumeration>

Is there any way to get the custom values of the enum?





More information about the gccxml mailing list