Hi : please please help me with c++ frontend

Nathan Sidwell nathan@codesourcery.com
Fri May 19 07:47:00 GMT 2006


Naren KN wrote:
> Hi Nathan,

Please copy the gcc list on these things.

>   I was asking this question and didn't get much reply.. regarding the 
> c++ frontend ... After calling the c_parse_file(), I wish to walk 
> through the list of namespaces, inturn all the classes and functions 
> inside them... could you help me with a sample code?? It will be very 
> very help ful.
>   If you can't atleast tell me the top level file handles for the following
> 1. namespaces
> 2. classes
> 3. functions
>   Also show me (that is already in gcc of particular version) example 
> codes which walk through these data structures.

walk_global_namespaces is what you want.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc mailing list