[GCC-XML]Detecting virtual inheritance

Pere Mato Vila Pere.Mato at cern.ch
Thu May 6 05:55:38 EDT 2004


  It has been quite easy after all. I am attaching the diff of what I
have done. 
  I have extended the existing qualifications of the bases with:

  _<id>                   public non virtual
  protected:_<id>         protected non virtual
  private:_<id>           private non virtual
  virtual:_<id>           public virtual
  protected_virtual:_<id> protected virtual
  private_virtual:_<id>   private virtual
  
  The problem is that this change makes the XML output backward
incompatible. Any suggestion?


			Pere


> -----Original Message-----
> From: Brad King [mailto:brad.king at kitware.com] 
> Sent: 05 May 2004 17:37
> To: Pere Mato Vila
> Cc: gccxml at gccxml.org
> Subject: Re: [GCC-XML]Detecting virtual inheritance
> 
> 
> Pere Mato Vila wrote:
> > Hello,
> > 
> >   Is there a way to detect virtual inheritance? The list of "bases" 
> > does not give me any hint on it.
> 
> Not currently, but it can be added.  However, I have no time to do it 
> now.  If you want to try, take a look in the GCC-XML source tree at 
> these files:
> 
>    gccxml/GCC/gcc/tree.h
>    gccxml/GCC/gcc/cp/cp-tree.h
>    gccxml/GCC/gcc/cp/xml.c
> 
> If you can figure out how to detect from GCC's representation 
> whether a 
> base is virtual, then you can adjust how the bases attribute 
> is dumped.
> 
> -Brad
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml.c.diff
Type: application/octet-stream
Size: 1773 bytes
Desc: xml.c.diff
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20040506/6bc67ba5/attachment.obj>


More information about the gccxml mailing list