From 0eaee545eef49ff9498234d3a51a5cbde59bf976 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 15 Aug 2019 15:54:37 +0000 Subject: [llvm] Migrate llvm::make_unique to std::make_unique Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances across the monorepo. llvm-svn: 369013 --- llvm/unittests/Support/FileCheckTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/unittests/Support/FileCheckTest.cpp') diff --git a/llvm/unittests/Support/FileCheckTest.cpp b/llvm/unittests/Support/FileCheckTest.cpp index d85690d633b..375f8960c10 100644 --- a/llvm/unittests/Support/FileCheckTest.cpp +++ b/llvm/unittests/Support/FileCheckTest.cpp @@ -87,9 +87,9 @@ TEST_F(FileCheckTest, NumericVariable) { // returns true, getValue and eval return value of expression, setValue // clears expression. std::unique_ptr FooVarUsePtr = - llvm::make_unique("FOO", &FooVar); + std::make_unique("FOO", &FooVar); std::unique_ptr One = - llvm::make_unique(1); + std::make_unique(1); FileCheckASTBinop Binop = FileCheckASTBinop(doAdd, std::move(FooVarUsePtr), std::move(One)); FileCheckNumericVariable FoobarExprVar = @@ -126,11 +126,11 @@ TEST_F(FileCheckTest, Binop) { FileCheckNumericVariable FooVar = FileCheckNumericVariable("FOO", 1); FooVar.setValue(42); std::unique_ptr FooVarUse = - llvm::make_unique("FOO", &FooVar); + std::make_unique("FOO", &FooVar); FileCheckNumericVariable BarVar = FileCheckNumericVariable("BAR", 2); BarVar.setValue(18); std::unique_ptr BarVarUse = - llvm::make_unique("BAR", &BarVar); + std::make_unique("BAR", &BarVar); FileCheckASTBinop Binop = FileCheckASTBinop(doAdd, std::move(FooVarUse), std::move(BarVarUse)); @@ -453,8 +453,8 @@ TEST_F(FileCheckTest, Substitution) { LineVar.setValue(42); NVar.setValue(10); auto LineVarUse = - llvm::make_unique("@LINE", &LineVar); - auto NVarUse = llvm::make_unique("N", &NVar); + std::make_unique("@LINE", &LineVar); + auto NVarUse = std::make_unique("N", &NVar); FileCheckNumericSubstitution SubstitutionLine = FileCheckNumericSubstitution( &Context, "@LINE", std::move(LineVarUse), 12); FileCheckNumericSubstitution SubstitutionN = -- cgit v1.2.3