summaryrefslogtreecommitdiffstats
path: root/clang-query
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 /clang-query
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 'clang-query')
-rw-r--r--clang-query/tool/ClangQuery.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang-query/tool/ClangQuery.cpp b/clang-query/tool/ClangQuery.cpp
index f9b62e08..92865fb3 100644
--- a/clang-query/tool/ClangQuery.cpp
+++ b/clang-query/tool/ClangQuery.cpp
@@ -32,7 +32,6 @@
#include "clang/Frontend/ASTUnit.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Tooling.h"
-#include "llvm/ADT/OwningPtr.h"
#include "llvm/LineEditor/LineEditor.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
@@ -70,8 +69,8 @@ int main(int argc, const char **argv) {
return 1;
}
- llvm::OwningPtr<CompilationDatabase> Compilations(
- FixedCompilationDatabase::loadFromCommandLine(argc, argv));
+ std::unique_ptr<CompilationDatabase> Compilations(
+ FixedCompilationDatabase::loadFromCommandLine(argc, argv));
if (!Compilations) { // Couldn't find a compilation DB from the command line
std::string ErrorMessage;
Compilations.reset(