[cfe-dev] CompilerInstance and C++

Vadium vabrva at gmail.com
Wed Sep 11 06:24:44 PDT 2013


Thank you Manuel for your responses!

> you definitely have the ASTContext available if that's what you need...
I was trying to find origin of ASTContext in consumer to use it. By trial
and error I found in the error stack that tool is also using ParseAST to run
action


So now I'm a bit confused if I can use both ASTContext(from
HandleTranslationUnit) and DeclGroupRef(from HandleTopLevelDecl) with
Tool/ClangTool. 
While using CompilerInstance I've done that through giving YAASTConsumer
link to the ASTContext that is used in CompilerInstance and just using
ParseAST.

Regards,
Vadim 



-----
Since speech has been invented, people still can't understand each other.
--
View this message in context: http://clang-developers.42468.n3.nabble.com/CompilerInstance-and-C-tp4030731p4034400.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list