[cfe-dev] Recursive AST Visitor

Robert Ankeney rrankene at gmail.com
Sun Feb 10 13:03:26 PST 2013


I'm not sure what exactly your code is doing, but a few thoughts come to
mind.  With the recursive AST visitor, the paths to the include files are
hard-coded (look at the AddPath calls in the code you're using) and make
sure they're using the appropriate paths you need for your code.
You can ask the SourceManager if a given SourceLocation is part of the file
you're analysing (i.e. not from an include file) with the
isFromMainFile(location) call.

Robert




--
View this message in context: http://clang-developers.42468.n3.nabble.com/Recursive-AST-Visitor-tp4030399p4030400.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list