diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-09-10 04:53:53 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-09-10 04:53:53 +0000 |
commit | b8a705305562a8312e6d63ced9c8237d9fae21f3 (patch) | |
tree | 114deebfd15c4e4b9defd7aa4ae4b9b41bbe744e /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | 7ff15929606a9004dba0c9a18371aa5438b927d2 (diff) | |
download | bcm5719-llvm-b8a705305562a8312e6d63ced9c8237d9fae21f3.tar.gz bcm5719-llvm-b8a705305562a8312e6d63ced9c8237d9fae21f3.zip |
Unique_ptrify PPCallbacks ownership.
Unique_ptr creation stil needs to be moved earlier at some of the call sites.
llvm-svn: 217474
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
-rw-r--r-- | clang/unittests/Basic/SourceManagerTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index 8f066ba8b82..1dda54dff14 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -303,7 +303,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { PP.Initialize(*Target); std::vector<MacroAction> Macros; - PP.addPPCallbacks(new MacroTracker(Macros)); + PP.addPPCallbacks(llvm::make_unique<MacroTracker>(Macros)); PP.EnterMainSourceFile(); |