[cfe-dev] get predefined typedefs and vars

Maximilian Odendahl maxodendahl at gmail.com
Wed Jun 9 03:47:50 PDT 2010


Hi,

I'm using a decl_iterator to loop over Decl::Vars and Decl::Typedefs and 
printing them to a file.

Is there a way to find out if this Var or Typedef was already predefined 
or actually coming from my parsed source file?

So I do not want to dump stuff such as

extern char* __tzname[2] or

typedef unsigned long __u_quad_t


Thanks for your help,
Max



More information about the cfe-dev mailing list