diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 23:52:23 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 23:52:23 +0000 |
| commit | 1c705d9c538d1d4a24f34e93be2582bc7e3a3da4 (patch) | |
| tree | 924390752eb23cde6f2294d364f330ec18736f3c /clang-tools-extra/clang-tidy/plugin | |
| parent | 2b3d49b610bd2a45884115edcb21110bfa325f51 (diff) | |
| download | bcm5719-llvm-1c705d9c538d1d4a24f34e93be2582bc7e3a3da4.tar.gz bcm5719-llvm-1c705d9c538d1d4a24f34e93be2582bc7e3a3da4.zip | |
[clang-tools-extra] 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.
Differential revision: https://reviews.llvm.org/D66259
llvm-svn: 368944
Diffstat (limited to 'clang-tools-extra/clang-tidy/plugin')
| -rw-r--r-- | clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp b/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp index 10165518161..aff11bdc1f2 100644 --- a/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp +++ b/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp @@ -42,7 +42,7 @@ public: auto ExternalDiagEngine = &Compiler.getDiagnostics(); auto DiagConsumer = new ClangTidyDiagnosticConsumer(*Context, ExternalDiagEngine); - auto DiagEngine = llvm::make_unique<DiagnosticsEngine>( + auto DiagEngine = std::make_unique<DiagnosticsEngine>( new DiagnosticIDs, new DiagnosticOptions, DiagConsumer); Context->setDiagnosticsEngine(DiagEngine.get()); @@ -51,7 +51,7 @@ public: std::vector<std::unique_ptr<ASTConsumer>> Vec; Vec.push_back(Factory.CreateASTConsumer(Compiler, File)); - return llvm::make_unique<WrapConsumer>( + return std::make_unique<WrapConsumer>( std::move(Context), std::move(DiagEngine), std::move(Vec)); } @@ -67,9 +67,9 @@ public: if (Arg.startswith("-checks=")) OverrideOptions.Checks = Arg.substr(strlen("-checks=")); - auto Options = llvm::make_unique<FileOptionsProvider>( + auto Options = std::make_unique<FileOptionsProvider>( GlobalOptions, DefaultOptions, OverrideOptions); - Context = llvm::make_unique<ClangTidyContext>(std::move(Options)); + Context = std::make_unique<ClangTidyContext>(std::move(Options)); return true; } |

