summaryrefslogtreecommitdiffstats
path: root/tool-template
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-09 09:24:40 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-09 09:24:40 +0000
commitc1d88b9502e819882b0bafbcf7bfe76e4d452d4a (patch)
treea8a4a436c75d5863afbfa297a4ca7b1446bd9756 /tool-template
parent7a14b6dba8d14c365a1e5529d884fb608a48594b (diff)
[C++11] Replace OwningPtr with std::unique_ptr.
This removes all references to OwningPtr, which should be fairly undisruptive to out-of-tree projects since they are unlikely to use clang-tools-extra as a library instead of a set of tools. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tool-template')
-rw-r--r--tool-template/ToolTemplate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tool-template/ToolTemplate.cpp b/tool-template/ToolTemplate.cpp
index 5c4159cc..7be964f9 100644
--- a/tool-template/ToolTemplate.cpp
+++ b/tool-template/ToolTemplate.cpp
@@ -42,7 +42,6 @@
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Tooling.h"
-#include "llvm/ADT/OwningPtr.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Signals.h"
@@ -81,8 +80,8 @@ cl::list<std::string> SourcePaths(
int main(int argc, const char **argv) {
llvm::sys::PrintStackTraceOnErrorSignal();
- llvm::OwningPtr<CompilationDatabase> Compilations(
- FixedCompilationDatabase::loadFromCommandLine(argc, argv));
+ std::unique_ptr<CompilationDatabase> Compilations(
+ FixedCompilationDatabase::loadFromCommandLine(argc, argv));
cl::ParseCommandLineOptions(argc, argv);
if (!Compilations) { // Couldn't find a compilation DB from the command line
std::string ErrorMessage;