[GCC-XML]instruction statements

Lorenzo Delana ldelana at libero.it
Thu Sep 19 15:32:50 EDT 2002


gccxml produces only declaration.. ?
may be possible to make gcc translation unit to release information about the 
definition of the functions ?

eg.

int fn( int x )
{
	int var_k;
	var_k = x;
	if ( var_k >= 0 ) var_k++;
}

so that this produces some information about var_k itself...

actually, this is the result:

<?xml version="1.0"?>
<GCC_XML>
  <Function id="_1" name="fn" returns="_2" context="_3" location="f0:2">
    <Argument name="x" type="_2"/>
  </Function>
  <FundamentalType id="_2" name="int"/>
  <Namespace id="_3" name="::"/>
  <File id="f0" name="t.cxx"/>
</GCC_XML>

I know that only declaration are now a great information for any use, but if 
someone would to operate on the contents of a function this op can be useful.

bye
Lore




More information about the gccxml mailing list