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]

Re: How to get C++ type from tree


On Saturday, February 28, 2004, at 05:00 AM, Nicolas Wiest-Daesslé wrote:
And then i use the global_namespace tree, and go over the tree to find
what the different node are (only the fist level).
By doing this i cannot get the RECORD_TYPE tree node associated with the
class (as i have found it should be in the gccint manual).


Could someone give me a hint, on how to get the data for the different
declared code ?

You can find it from lookup_name (get_identifier ("Test"), 1) or something like that...


Not quite what you want... You should be able to see how unqualified_namespace_lookup finds the name from the global namespace.


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