This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
global_namespace?
- From: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 9 Apr 2003 16:52:48 +0200
- Subject: global_namespace?
Hello everybody,
The port I'm writing needs to have very accurate informations about the data
structure and declared variable (especially structs and classes details). In
order to be able to build up all the information I need, I'd like to access
the global namespace once the file is parsed in order to retrieve all the
global types and variables declarations. The manual talks about a variable
named global_namespace which is supposed to be this root namespace, but
unfortunately all my attemps to find it (using gcc 3.2.2) failed. It doesn't
even seem to appear in the sources. Is the documentation still up to date
regarding this? Is there another way to get this namespace? Also, it seems
that the parsing is done "one function at a time" as said in the manual. Does
it mean that when ASM_FILE_START is called, the syntaxic tree for the file
isn't completely built? Should I use another hook to perform my own data
structures build?
Thanks in advance for any hint!
Alex.
--
http://www.gnurou.org