[GCC-XML]Get rid of compiler created construcors

Brad King brad.king at kitware.com
Wed Sep 24 09:32:38 EDT 2003

> I am generating XMI (UML) with the information from GCC-XML. In the XMI
> I don't want to have the compiler generated constructors (copy constr.
> and standard constr.) but the problem is that I cannot distinguish in
> the file generated by GCC-XML if the constructor has been added by the
> compiler or is coded in the source file. Is it somehow possible to
> exclude the compiler generated constructors with GCC-XML?

There is no way to get rid of them right now.  Probably the right thing to
do is to add an extra attribute that marks them as artificially generated:

  <Constructor id="_4" name="A" throw="" context="_1" location="f0:1" artificial="1"/>

Will this be sufficient for your needs?


More information about the gccxml mailing list