[cfe-dev] Variable Context

madil90 madil90 at gmail.com
Mon Oct 22 13:24:55 PDT 2012


Hi,
   I want to find out whether a certain decl was present in the main file or
came from some file inlcude through the "#include" directive. How can I do
that? I am using an ASTConsumer to parse an AST. Also, for declarations
included from some other file, can I find the name of the file it came from?
e.g. "cout" came from "<iostream>"

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Variable-Context-tp4027645.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list