summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp')
-rw-r--r--clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp b/clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp
index f796f43ec33..016ce55127e 100644
--- a/clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp
+++ b/clang-tools-extra/clang-modernize/Core/IncludeExcludeInfo.cpp
@@ -14,7 +14,6 @@
//===----------------------------------------------------------------------===//
#include "IncludeExcludeInfo.h"
-#include "llvm/ADT/OwningPtr.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
@@ -122,7 +121,7 @@ error_code IncludeExcludeInfo::readListFromString(StringRef IncludeString,
error_code IncludeExcludeInfo::readListFromFile(StringRef IncludeListFile,
StringRef ExcludeListFile) {
if (!IncludeListFile.empty()) {
- OwningPtr<MemoryBuffer> FileBuf;
+ std::unique_ptr<MemoryBuffer> FileBuf;
if (error_code Err = MemoryBuffer::getFile(IncludeListFile, FileBuf)) {
errs() << "Unable to read from include file.\n";
return Err;
@@ -132,7 +131,7 @@ error_code IncludeExcludeInfo::readListFromFile(StringRef IncludeListFile,
return Err;
}
if (!ExcludeListFile.empty()) {
- OwningPtr<MemoryBuffer> FileBuf;
+ std::unique_ptr<MemoryBuffer> FileBuf;
if (error_code Err = MemoryBuffer::getFile(ExcludeListFile, FileBuf)) {
errs() << "Unable to read from exclude file.\n";
return Err;
OpenPOWER on IntegriCloud