[cfe-dev] Get filename from ASTVisitor

suppamax max.giacometti at gmail.com
Sun Apr 21 09:45:26 PDT 2013


I am using a RecursiveASTVisitor to get the declaration statements of my
code.
I took inspiration from the example shown here:
http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/

I extended the example so to include "included" files in the AST (this is
necessary to be able to identify variable declarations that use non-basic
data types).

Now I want to filter all variable declarations that are not part of the file
that I want to analyze.
How can I do this?


Thanks a lot,
Max



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Get-filename-from-ASTVisitor-tp4031615.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list