[GCC-XML]Argument names?

Paul.Ross at Symbian.Com Paul.Ross at Symbian.Com
Tue Jul 29 06:59:14 EDT 2003


If you only make a declaration then the names are discarded, if you make a 
definition then the names are retained. For example:

int foo_1(int a, int b);
int foo_2(int a, int b){}

Produces the following xml:
<?xml version="1.0"?>
<GCC_XML>
  <Namespace id="_1" name="::" members="_3 _4 "/>
  <Namespace id="_2" name="std" context="_1" members=""/>
  <Function id="_3" name="foo_2" returns="_5" context="_1" 
location="f0:2">
    <Argument name="a" type="_5"/>
    <Argument name="b" type="_5"/>
  </Function>
  <Function id="_4" name="foo_1" returns="_5" context="_1" location="f0:1" 
extern="1">
    <Argument type="_5"/>
    <Argument type="_5"/>
  </Function>
  <FundamentalType id="_5" name="int"/>
  <File id="f0" name="test/foo.h"/>
</GCC_XML>

It makes a difference whether you run gccxml on the implementation file or 
the header file.

Paul





Nicodemus <nicodemus at globalite.com.br>
Sent by: gccxml-admin at gccxml.org
29/07/2003 02:56

 
        To:     GCC-XML Discussion <gccxml at gccxml.org>
        cc: 
        Subject:        [GCC-XML]Argument names?


Currently, GCCXML doesn't output the names of the arguments in functions:

void foo(int x, int y);

The resulting XML has no information about the declared name of the 
arguments ("x" and "y"). There's any chance that GCCXML will provide 
this in the future?

Thanks!
Nicodemus.

_______________________________________________
gccxml mailing list
gccxml at gccxml.org
http://www.gccxml.org/mailman/listinfo/gccxml





**********************************************************************
Symbian Ltd is a company registered in England and Wales with registered number 01796587 and registered office at 19 Harcourt Street, London, W1H 4HF, UK.
This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify postmaster at symbian.com and delete the message and any attachments accompanying it immediately. Symbian does not accept liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy.
**********************************************************************




More information about the gccxml mailing list