summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/unittests')
-rw-r--r--clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp2
-rw-r--r--clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp4
-rw-r--r--clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h2
-rw-r--r--clang-tools-extra/unittests/include/common/VirtualFileHelper.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp b/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp
index 94b3d866f92..f01c7492da1 100644
--- a/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp
+++ b/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp
@@ -105,7 +105,7 @@ private:
StringRef Include;
VirtualFileHelper VFHelper;
tooling::Replacements &Replaces;
- OwningPtr<IncludeDirectives> FileIncludes;
+ std::unique_ptr<IncludeDirectives> FileIncludes;
std::string FileToModify;
// if non-null, add the include directives in this file instead of the main
// file.
diff --git a/clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp b/clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp
index 266743ddf70..f79bedeb537 100644
--- a/clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp
+++ b/clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp
@@ -25,10 +25,10 @@ using namespace clang::query;
using namespace clang::tooling;
TEST(Query, Basic) {
- OwningPtr<ASTUnit> FooAST(
+ std::unique_ptr<ASTUnit> FooAST(
buildASTFromCode("void foo1(void) {}\nvoid foo2(void) {}", "foo.cc"));
ASSERT_TRUE(FooAST.get());
- OwningPtr<ASTUnit> BarAST(
+ std::unique_ptr<ASTUnit> BarAST(
buildASTFromCode("void bar1(void) {}\nvoid bar2(void) {}", "bar.cc"));
ASSERT_TRUE(BarAST.get());
diff --git a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
index 71201dbdddd..f42a57649d1 100644
--- a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
+++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
@@ -50,7 +50,7 @@ template <typename T> std::string runCheckOnCode(StringRef Code) {
return "";
ast_matchers::MatchFinder Finder;
Check.registerMatchers(&Finder);
- OwningPtr<tooling::FrontendActionFactory> Factory(
+ std::unique_ptr<tooling::FrontendActionFactory> Factory(
tooling::newFrontendActionFactory(&Finder));
if (!tooling::runToolOnCode(Factory->create(), Code))
return "";
diff --git a/clang-tools-extra/unittests/include/common/VirtualFileHelper.h b/clang-tools-extra/unittests/include/common/VirtualFileHelper.h
index 2960c72ab0d..4ec00da9ced 100644
--- a/clang-tools-extra/unittests/include/common/VirtualFileHelper.h
+++ b/clang-tools-extra/unittests/include/common/VirtualFileHelper.h
@@ -73,7 +73,7 @@ private:
FileManager Files;
// most tests don't need more than one file
llvm::SmallVector<VirtualFile, 1> VirtualFiles;
- llvm::OwningPtr<SourceManager> Sources;
+ std::unique_ptr<SourceManager> Sources;
};
} // end namespace clang
OpenPOWER on IntegriCloud