[GCC-XML]missing output

kevin j. miles kmiles at edaptive.com
Mon Aug 26 17:09:07 EDT 2002


this seems to be missing a capture of the struct and some enums...
what am i doing wrong... or should these things be omitted?


gccxml --print
GCC-XML version 0.2
Configuration settings:
  GCCXML_CONFIG="/usr/local/share/GCC_XML/config"
  GCCXML_COMPILER="c++"
  GCCXML_EXECUTABLE="/usr/local/bin/gccxml_cc1plus"
  GCCXML_FLAGS="-quiet -o /dev/null -w -fsyntax-only -nostdinc -I-
-D__GNUG__=2 -D__EXCEPTIONS -D__GNUC__=2 -D__GNUC_MINOR__=96
-D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__
-D__linux__ -D__unix -D__linux -D__NO_INLINE__ -Di386 -D__i386
-D__i386__ -D__tune_i386__ -I/usr/local/share/GCC_XML/GccInclude/2_95
-I/usr/include/g++-3 -I/usr/local/include
-I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -I/usr/include
-fxml-no-honor-std "
  GCCXML_USER_FLAGS="-I./CART"
  GCCXML_ROOT="/usr/local/share/GCC_XML"


%gccxml code.h -fxml=code.xml
returns...

C++ INPUT:

class code
{
public:
  enum enumtypes
  {
    RATE_GROUP,
    APERIODIC,
    PRECISE
  };
  struct structtypes
  {
    int unused_1        : 1;
    int message_error   : 1;
    int reserved        : 1;
    int unused_2        : 3;
    int broadcast_last  : 1;
    int unused_3        : 5;
  };
  enum Control
  {
    DISABLED         = 0,
    NO_RETRY         = 1,
    RETRY_SAME       = 2,
    RETRY_ALTERNATE  = 3
  };
protected:
  int *int1;
  void func1 (int mailbox);
private:
  int *error_note;
  bool *comp_note;
};


gccxml OUTPUT:

<?xml version="1.0"?>
<GCC_XML>
  <Namespace id="_1" name="::" members="_2 "/>
  <Class id="_2" name="code" context="_1" location="f0:2" members="_3 _4
_5 _6 _7 _8 " bases=""/>
  <Field id="_3" name="int1" access="protected" type="_9" context="_2"
location="f0:27"/>
  <Field id="_4" name="error_note" access="private" type="_9"
context="_2" location="f0:30"/>
  <Field id="_5" name="comp_note" access="private" type="_10"
context="_2" location="f0:31"/>
  <Constructor id="_6" name="code" context="_2" location="f0:2">
    <Argument name="_ctor_arg" type="_11"/>
  </Constructor>
  <Constructor id="_7" name="code" context="_2" location="f0:2"/>
  <Method id="_8" name="func1" returns="_12" access="protected"
context="_2" location="f0:28" extern="1">
    <Argument name="mailbox" type="_13"/>
  </Method>
  <PointerType id="_9" type="_13"/>
  <PointerType id="_10" type="_14"/>
  <ReferenceType id="_11" type="_2c"/>
  <FundamentalType id="_12" name="void"/>
  <FundamentalType id="_13" name="int"/>
  <FundamentalType id="_14" name="bool"/>
  <File id="f0" name="code.h"/>
</GCC_XML>




More information about the gccxml mailing list