summaryrefslogtreecommitdiff
path: root/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-09-10 04:53:53 +0000
committerCraig Topper <craig.topper@gmail.com>2014-09-10 04:53:53 +0000
commitc6da4d1d6ce3e453deb29972f8dc3807500bbd1d (patch)
tree0a3a5772653ac96d99aabc2c107ce3958c20ec9a /unittests/Basic/SourceManagerTest.cpp
parent98045aa38c5f99972a98387469f2fcfcc28ee5e9 (diff)
downloadclang-c6da4d1d6ce3e453deb29972f8dc3807500bbd1d.tar.gz
Unique_ptrify PPCallbacks ownership.
Unique_ptr creation stil needs to be moved earlier at some of the call sites. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Basic/SourceManagerTest.cpp')
-rw-r--r--unittests/Basic/SourceManagerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Basic/SourceManagerTest.cpp b/unittests/Basic/SourceManagerTest.cpp
index 8f066ba8b8..1dda54dff1 100644
--- a/unittests/Basic/SourceManagerTest.cpp
+++ b/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();