diff options
Diffstat (limited to 'clang/tools/clang-refactor')
-rw-r--r-- | clang/tools/clang-refactor/ClangRefactor.cpp | 12 | ||||
-rw-r--r-- | clang/tools/clang-refactor/TestSupport.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/tools/clang-refactor/ClangRefactor.cpp b/clang/tools/clang-refactor/ClangRefactor.cpp index 2e4c6480a1e..2a9d6ffefb7 100644 --- a/clang/tools/clang-refactor/ClangRefactor.cpp +++ b/clang/tools/clang-refactor/ClangRefactor.cpp @@ -151,12 +151,12 @@ SourceSelectionArgument::fromString(StringRef Value) { findTestSelectionRanges(Filename); if (!ParsedTestSelection) return nullptr; // A parsing error was already reported. - return llvm::make_unique<TestSourceSelectionArgument>( + return std::make_unique<TestSourceSelectionArgument>( std::move(*ParsedTestSelection)); } Optional<ParsedSourceRange> Range = ParsedSourceRange::fromString(Value); if (Range) - return llvm::make_unique<SourceRangeSelectionArgument>(std::move(*Range)); + return std::make_unique<SourceRangeSelectionArgument>(std::move(*Range)); llvm::errs() << "error: '-selection' option must be specified using " "<file>:<line>:<column> or " "<file>:<line>:<column>-<line>:<column> format\n"; @@ -237,7 +237,7 @@ private: "specified for one refactoring action"); // FIXME: cl::Required can be specified when this option is present // in all rules in an action. - return llvm::make_unique<cl::opt<T>>( + return std::make_unique<cl::opt<T>>( Opt.getName(), cl::desc(Opt.getDescription()), cl::Optional, cl::cat(Category), cl::sub(Subcommand)); } @@ -260,7 +260,7 @@ public: // Check if the selection option is supported. for (const auto &Rule : this->ActionRules) { if (Rule->hasSelectionRequirement()) { - Selection = llvm::make_unique<cl::opt<std::string>>( + Selection = std::make_unique<cl::opt<std::string>>( "selection", cl::desc( "The selected source range in which the refactoring should " @@ -361,7 +361,7 @@ public: // Create subcommands and command-line options. for (auto &Action : Actions) { - SubCommands.push_back(llvm::make_unique<RefactoringActionSubcommand>( + SubCommands.push_back(std::make_unique<RefactoringActionSubcommand>( std::move(Action), Action->createActiveActionRules(), opts::CommonRefactorOptions)); } @@ -467,7 +467,7 @@ public: TUCallbackType Callback; }; - return llvm::make_unique<ToolActionFactory>( + return std::make_unique<ToolActionFactory>( [this](ASTContext &AST) { return callback(AST); }); } diff --git a/clang/tools/clang-refactor/TestSupport.cpp b/clang/tools/clang-refactor/TestSupport.cpp index 7d5d5471dcd..9d2d9662276 100644 --- a/clang/tools/clang-refactor/TestSupport.cpp +++ b/clang/tools/clang-refactor/TestSupport.cpp @@ -256,7 +256,7 @@ bool TestRefactoringResultConsumer::handleAllResults() { std::unique_ptr<ClangRefactorToolConsumerInterface> TestSelectionRangesInFile::createConsumer() const { - return llvm::make_unique<TestRefactoringResultConsumer>(*this); + return std::make_unique<TestRefactoringResultConsumer>(*this); } /// Adds the \p ColumnOffset to file offset \p Offset, without going past a |