This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]