summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-14 23:52:23 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-14 23:52:23 +0000
commit1c705d9c538d1d4a24f34e93be2582bc7e3a3da4 (patch)
tree924390752eb23cde6f2294d364f330ec18736f3c /clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
parent2b3d49b610bd2a45884115edcb21110bfa325f51 (diff)
downloadbcm5719-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/unittests/clang-doc/YAMLGeneratorTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp b/clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
index efc08fdc21a..449bb5abf46 100644
--- a/clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+++ b/clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
@@ -246,100 +246,100 @@ TEST(YAMLGeneratorTest, emitCommentYAML) {
CommentInfo Top;
Top.Kind = "FullComment";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *BlankLine = Top.Children.back().get();
BlankLine->Kind = "ParagraphComment";
- BlankLine->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ BlankLine->Children.emplace_back(std::make_unique<CommentInfo>());
BlankLine->Children.back()->Kind = "TextComment";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *Brief = Top.Children.back().get();
Brief->Kind = "ParagraphComment";
- Brief->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Brief->Children.emplace_back(std::make_unique<CommentInfo>());
Brief->Children.back()->Kind = "TextComment";
Brief->Children.back()->Name = "ParagraphComment";
Brief->Children.back()->Text = " Brief description.";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *Extended = Top.Children.back().get();
Extended->Kind = "ParagraphComment";
- Extended->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Extended->Children.emplace_back(std::make_unique<CommentInfo>());
Extended->Children.back()->Kind = "TextComment";
Extended->Children.back()->Text = " Extended description that";
- Extended->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Extended->Children.emplace_back(std::make_unique<CommentInfo>());
Extended->Children.back()->Kind = "TextComment";
Extended->Children.back()->Text = " continues onto the next line.";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *HTML = Top.Children.back().get();
HTML->Kind = "ParagraphComment";
- HTML->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ HTML->Children.emplace_back(std::make_unique<CommentInfo>());
HTML->Children.back()->Kind = "TextComment";
- HTML->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ HTML->Children.emplace_back(std::make_unique<CommentInfo>());
HTML->Children.back()->Kind = "HTMLStartTagComment";
HTML->Children.back()->Name = "ul";
HTML->Children.back()->AttrKeys.emplace_back("class");
HTML->Children.back()->AttrValues.emplace_back("test");
- HTML->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ HTML->Children.emplace_back(std::make_unique<CommentInfo>());
HTML->Children.back()->Kind = "HTMLStartTagComment";
HTML->Children.back()->Name = "li";
- HTML->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ HTML->Children.emplace_back(std::make_unique<CommentInfo>());
HTML->Children.back()->Kind = "TextComment";
HTML->Children.back()->Text = " Testing.";
- HTML->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ HTML->Children.emplace_back(std::make_unique<CommentInfo>());
HTML->Children.back()->Kind = "HTMLEndTagComment";
HTML->Children.back()->Name = "ul";
HTML->Children.back()->SelfClosing = true;
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *Verbatim = Top.Children.back().get();
Verbatim->Kind = "VerbatimBlockComment";
Verbatim->Name = "verbatim";
Verbatim->CloseName = "endverbatim";
- Verbatim->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Verbatim->Children.emplace_back(std::make_unique<CommentInfo>());
Verbatim->Children.back()->Kind = "VerbatimBlockLineComment";
Verbatim->Children.back()->Text = " The description continues.";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *ParamOut = Top.Children.back().get();
ParamOut->Kind = "ParamCommandComment";
ParamOut->Direction = "[out]";
ParamOut->ParamName = "I";
ParamOut->Explicit = true;
- ParamOut->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ ParamOut->Children.emplace_back(std::make_unique<CommentInfo>());
ParamOut->Children.back()->Kind = "ParagraphComment";
ParamOut->Children.back()->Children.emplace_back(
- llvm::make_unique<CommentInfo>());
+ std::make_unique<CommentInfo>());
ParamOut->Children.back()->Children.back()->Kind = "TextComment";
ParamOut->Children.back()->Children.emplace_back(
- llvm::make_unique<CommentInfo>());
+ std::make_unique<CommentInfo>());
ParamOut->Children.back()->Children.back()->Kind = "TextComment";
ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *ParamIn = Top.Children.back().get();
ParamIn->Kind = "ParamCommandComment";
ParamIn->Direction = "[in]";
ParamIn->ParamName = "J";
- ParamIn->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ ParamIn->Children.emplace_back(std::make_unique<CommentInfo>());
ParamIn->Children.back()->Kind = "ParagraphComment";
ParamIn->Children.back()->Children.emplace_back(
- llvm::make_unique<CommentInfo>());
+ std::make_unique<CommentInfo>());
ParamIn->Children.back()->Children.back()->Kind = "TextComment";
ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
ParamIn->Children.back()->Children.emplace_back(
- llvm::make_unique<CommentInfo>());
+ std::make_unique<CommentInfo>());
ParamIn->Children.back()->Children.back()->Kind = "TextComment";
- Top.Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Top.Children.emplace_back(std::make_unique<CommentInfo>());
CommentInfo *Return = Top.Children.back().get();
Return->Kind = "BlockCommandComment";
Return->Name = "return";
Return->Explicit = true;
- Return->Children.emplace_back(llvm::make_unique<CommentInfo>());
+ Return->Children.emplace_back(std::make_unique<CommentInfo>());
Return->Children.back()->Kind = "ParagraphComment";
Return->Children.back()->Children.emplace_back(
- llvm::make_unique<CommentInfo>());
+ std::make_unique<CommentInfo>());
Return->Children.back()->Children.back()->Kind = "TextComment";
Return->Children.back()->Children.back()->Text = "void";
OpenPOWER on IntegriCloud