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
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?
SourceManager::isFromMainFile .
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>"
SourceManager::getFilename .
-Eli