Global variables
Mike Stump
mrs@apple.com
Mon Aug 29 23:34:00 GMT 2005
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.
More information about the Gcc
mailing list