summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/pp-trace/PPTrace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/pp-trace/PPTrace.cpp')
-rw-r--r--clang-tools-extra/pp-trace/PPTrace.cpp7
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:
OpenPOWER on IntegriCloud