diff options
Diffstat (limited to 'clang-tools-extra/pp-trace/PPTrace.cpp')
-rw-r--r-- | clang-tools-extra/pp-trace/PPTrace.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang-tools-extra/pp-trace/PPTrace.cpp b/clang-tools-extra/pp-trace/PPTrace.cpp index ed955fb63bb..9dc1bbbe79b 100644 --- a/clang-tools-extra/pp-trace/PPTrace.cpp +++ b/clang-tools-extra/pp-trace/PPTrace.cpp @@ -120,9 +120,10 @@ public: : Ignore(Ignore), CallbackCalls(CallbackCalls) {} protected: - virtual clang::ASTConsumer *CreateASTConsumer(CompilerInstance &CI, - StringRef InFile) { - return new PPTraceConsumer(Ignore, CallbackCalls, CI.getPreprocessor()); + std::unique_ptr<clang::ASTConsumer> + CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override { + return llvm::make_unique<PPTraceConsumer>(Ignore, CallbackCalls, + CI.getPreprocessor()); } private: |