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: Global variables


On Aug 29, 2005, at 5:34 AM, Primrose.Mbanefo@Infineon.com wrote:
I'm trying to extract global variables from a set of c++ files. I tried
using:
cp_namespace_decls(global_namespace);


But this returns a whole set of variables which I do not want to know
about now (i.e stdout, timezone, _ZTISt10ostrstream e.t.c)

How do I get rid of this excess or what is the right way of accessing
such variables?

Try looking ta DECL_SOURCE_FILE/DECL_SOURCE_LINE/DECL_ARTIFICIAL and you'll want to read and understand files like cp-tree.h, tree.h and tree.def.



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