diff options
Diffstat (limited to 'clang/unittests/Tooling/Syntax')
-rw-r--r-- | clang/unittests/Tooling/Syntax/TokensTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Tooling/Syntax/TreeTest.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/unittests/Tooling/Syntax/TokensTest.cpp b/clang/unittests/Tooling/Syntax/TokensTest.cpp index a1398bd5568..78f0d2fdd87 100644 --- a/clang/unittests/Tooling/Syntax/TokensTest.cpp +++ b/clang/unittests/Tooling/Syntax/TokensTest.cpp @@ -106,7 +106,7 @@ public: std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override { - return llvm::make_unique<ASTConsumer>(); + return std::make_unique<ASTConsumer>(); } private: diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp index e83d2b72728..c88a112be52 100644 --- a/clang/unittests/Tooling/Syntax/TreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp @@ -40,7 +40,7 @@ protected: } void HandleTranslationUnit(ASTContext &Ctx) override { - Arena = llvm::make_unique<syntax::Arena>(Ctx.getSourceManager(), + Arena = std::make_unique<syntax::Arena>(Ctx.getSourceManager(), Ctx.getLangOpts(), std::move(*Tokens).consume()); Tokens = nullptr; // make sure we fail if this gets called twice. @@ -63,8 +63,8 @@ protected: CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override { // We start recording the tokens, ast consumer will take on the result. auto Tokens = - llvm::make_unique<syntax::TokenCollector>(CI.getPreprocessor()); - return llvm::make_unique<BuildSyntaxTree>(Root, Arena, + std::make_unique<syntax::TokenCollector>(CI.getPreprocessor()); + return std::make_unique<BuildSyntaxTree>(Root, Arena, std::move(Tokens)); } |