One of the necessary changes for Clang 3.6 libtooling exampl

a guest Dec 2nd, 2014 275 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand