This is the mail archive of the 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]

Using the g++ front end


I am looking at using the g++ front end to parse C++ headers to obtain class
definitions. From section 18.4.2 of the gcc manual:

Almost all non-function members are available on the TYPE_FIELDS list. Given
one member, the next can be found by following the TREE_CHAIN. You should
not depend in any way on the order in which fields appear on this list.

Is there no way to determine the order of class data members, or am I
misreading something? I need this information in order to start looking at a
simple object database storage mechanism. Also, any examples you know of
which show how to use g++ as a front end would be most appreciated.

Thanks in advance.

Dave Davies
Director, Systems & Technology
Reech Capital PLC
1 Undershaft, 3rd Floor, London EC3P 3DQ
Tel: 020.7623.6333 - Fax: 020.7623.8899
  ********************* IMPORTANT MESSAGE *****************************
Internet communications are not secure and therefore Reech Capital PLC do
not accept legal responsibility for the contents of this message. 

 The information contained in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful.  Any views expressed in this e-mail are those of the individual
sender, except where the sender specifically states them to be the views of
Reech Capital PLC or  any of its affiliates.

 ****************************   DISCLAIMER  ********************************

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