Advertisement
Guest User

One of the necessary changes for Clang 3.6 libtooling exampl

a guest
Dec 2nd, 2014
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. class ExampleFrontendAction : public ASTFrontendAction {
  2. public:
  3.     virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, StringRef file) {
  4.         return std::unique_ptr<ASTConsumer>(new ExampleASTConsumer(&CI)); // pass CI pointer to ASTConsumer                                    
  5.     }
  6. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement