reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/extra/clang-doc/BitcodeReader.cpp
  354   I->Children.emplace_back(std::make_unique<CommentInfo>());
  355   return I->Children.back().get();
tools/clang/tools/extra/clang-doc/BitcodeWriter.cpp
  449   for (const auto &C : I.Children)
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
  603     for (const auto &Child : I.Children) {
  611     for (const auto &Child : I.Children) {
tools/clang/tools/extra/clang-doc/MDGenerator.cpp
   61     for (const auto &Child : I.Children)
   64     for (const auto &Child : I.Children)
   69     for (const auto &Child : I.Children)
   80     for (const auto &Child : I.Children)
tools/clang/tools/extra/clang-doc/Representation.h
   50   CommentInfo &operator=(CommentInfo &&Other) = default;
   60     if (FirstCI != SecondCI || Children.size() != Other.Children.size())
   60     if (FirstCI != SecondCI || Children.size() != Other.Children.size())
   63     return std::equal(Children.begin(), Children.end(), Other.Children.begin(),
   63     return std::equal(Children.begin(), Children.end(), Other.Children.begin(),
   63     return std::equal(Children.begin(), Children.end(), Other.Children.begin(),
   84           Children.begin(), Children.end(), Other.Children.begin(),
   84           Children.begin(), Children.end(), Other.Children.begin(),
   84           Children.begin(), Children.end(), Other.Children.begin(),
   85           Other.Children.end(), llvm::deref<std::less<>>());
tools/clang/tools/extra/clang-doc/Serialize.cpp
   93     CurrentCI.Children.emplace_back(std::make_unique<CommentInfo>());
   94     ClangDocCommentVisitor Visitor(*CurrentCI.Children.back());
tools/clang/tools/extra/clang-doc/YAMLGenerator.cpp
  155   IO.mapOptional("Children", I.Children);
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp
  172   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  173   CommentInfo *BlankLine = Top.Children.back().get();
  175   BlankLine->Children.emplace_back(std::make_unique<CommentInfo>());
  176   BlankLine->Children.back()->Kind = "TextComment";
  178   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  179   CommentInfo *Brief = Top.Children.back().get();
  181   Brief->Children.emplace_back(std::make_unique<CommentInfo>());
  182   Brief->Children.back()->Kind = "TextComment";
  183   Brief->Children.back()->Name = "ParagraphComment";
  184   Brief->Children.back()->Text = " Brief description.";
  186   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  187   CommentInfo *Extended = Top.Children.back().get();
  189   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  190   Extended->Children.back()->Kind = "TextComment";
  191   Extended->Children.back()->Text = " Extended description that";
  192   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  193   Extended->Children.back()->Kind = "TextComment";
  194   Extended->Children.back()->Text = " continues onto the next line.";
  196   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  197   CommentInfo *HTML = Top.Children.back().get();
  199   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  200   HTML->Children.back()->Kind = "TextComment";
  201   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  202   HTML->Children.back()->Kind = "HTMLStartTagComment";
  203   HTML->Children.back()->Name = "ul";
  204   HTML->Children.back()->AttrKeys.emplace_back("class");
  205   HTML->Children.back()->AttrValues.emplace_back("test");
  206   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  207   HTML->Children.back()->Kind = "HTMLStartTagComment";
  208   HTML->Children.back()->Name = "li";
  209   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  210   HTML->Children.back()->Kind = "TextComment";
  211   HTML->Children.back()->Text = " Testing.";
  212   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  213   HTML->Children.back()->Kind = "HTMLEndTagComment";
  214   HTML->Children.back()->Name = "ul";
  215   HTML->Children.back()->SelfClosing = true;
  217   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  218   CommentInfo *Verbatim = Top.Children.back().get();
  222   Verbatim->Children.emplace_back(std::make_unique<CommentInfo>());
  223   Verbatim->Children.back()->Kind = "VerbatimBlockLineComment";
  224   Verbatim->Children.back()->Text = " The description continues.";
  226   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  227   CommentInfo *ParamOut = Top.Children.back().get();
  232   ParamOut->Children.emplace_back(std::make_unique<CommentInfo>());
  233   ParamOut->Children.back()->Kind = "ParagraphComment";
  234   ParamOut->Children.back()->Children.emplace_back(
  234   ParamOut->Children.back()->Children.emplace_back(
  236   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  236   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  237   ParamOut->Children.back()->Children.emplace_back(
  237   ParamOut->Children.back()->Children.emplace_back(
  239   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  239   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  240   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  240   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  242   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  243   CommentInfo *ParamIn = Top.Children.back().get();
  247   ParamIn->Children.emplace_back(std::make_unique<CommentInfo>());
  248   ParamIn->Children.back()->Kind = "ParagraphComment";
  249   ParamIn->Children.back()->Children.emplace_back(
  249   ParamIn->Children.back()->Children.emplace_back(
  251   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  251   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  252   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  252   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  253   ParamIn->Children.back()->Children.emplace_back(
  253   ParamIn->Children.back()->Children.emplace_back(
  255   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  255   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  257   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  258   CommentInfo *Return = Top.Children.back().get();
  262   Return->Children.emplace_back(std::make_unique<CommentInfo>());
  263   Return->Children.back()->Kind = "ParagraphComment";
  264   Return->Children.back()->Children.emplace_back(
  264   Return->Children.back()->Children.emplace_back(
  266   Return->Children.back()->Children.back()->Kind = "TextComment";
  266   Return->Children.back()->Children.back()->Kind = "TextComment";
  267   Return->Children.back()->Children.back()->Text = "void";
  267   Return->Children.back()->Children.back()->Text = "void";
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.cpp
   59   ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
   59   ASSERT_EQ(Expected.Children.size(), Actual.Children.size());
   60   for (size_t Idx = 0; Idx < Actual.Children.size(); ++Idx)
   61     CheckCommentInfo(*Expected.Children[Idx], *Actual.Children[Idx]);
   61     CheckCommentInfo(*Expected.Children[Idx], *Actual.Children[Idx]);
tools/clang/tools/extra/unittests/clang-doc/HTMLGeneratorTest.cpp
  381   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  382   CommentInfo *BlankLine = Top.Children.back().get();
  384   BlankLine->Children.emplace_back(std::make_unique<CommentInfo>());
  385   BlankLine->Children.back()->Kind = "TextComment";
  387   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  388   CommentInfo *Brief = Top.Children.back().get();
  390   Brief->Children.emplace_back(std::make_unique<CommentInfo>());
  391   Brief->Children.back()->Kind = "TextComment";
  392   Brief->Children.back()->Name = "ParagraphComment";
  393   Brief->Children.back()->Text = " Brief description.";
  395   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  396   CommentInfo *Extended = Top.Children.back().get();
  398   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  399   Extended->Children.back()->Kind = "TextComment";
  400   Extended->Children.back()->Text = " Extended description that";
  401   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  402   Extended->Children.back()->Kind = "TextComment";
  403   Extended->Children.back()->Text = " continues onto the next line.";
  405   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  406   CommentInfo *Entities = Top.Children.back().get();
  408   Entities->Children.emplace_back(std::make_unique<CommentInfo>());
  409   Entities->Children.back()->Kind = "TextComment";
  410   Entities->Children.back()->Name = "ParagraphComment";
  411   Entities->Children.back()->Text =
tools/clang/tools/extra/unittests/clang-doc/MDGeneratorTest.cpp
  224   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  225   CommentInfo *BlankLine = Top.Children.back().get();
  227   BlankLine->Children.emplace_back(std::make_unique<CommentInfo>());
  228   BlankLine->Children.back()->Kind = "TextComment";
  230   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  231   CommentInfo *Brief = Top.Children.back().get();
  233   Brief->Children.emplace_back(std::make_unique<CommentInfo>());
  234   Brief->Children.back()->Kind = "TextComment";
  235   Brief->Children.back()->Name = "ParagraphComment";
  236   Brief->Children.back()->Text = " Brief description.";
  238   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  239   CommentInfo *Extended = Top.Children.back().get();
  241   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  242   Extended->Children.back()->Kind = "TextComment";
  243   Extended->Children.back()->Text = " Extended description that";
  244   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  245   Extended->Children.back()->Kind = "TextComment";
  246   Extended->Children.back()->Text = " continues onto the next line.";
  248   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  249   CommentInfo *HTML = Top.Children.back().get();
  251   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  252   HTML->Children.back()->Kind = "TextComment";
  253   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  254   HTML->Children.back()->Kind = "HTMLStartTagComment";
  255   HTML->Children.back()->Name = "ul";
  256   HTML->Children.back()->AttrKeys.emplace_back("class");
  257   HTML->Children.back()->AttrValues.emplace_back("test");
  258   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  259   HTML->Children.back()->Kind = "HTMLStartTagComment";
  260   HTML->Children.back()->Name = "li";
  261   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  262   HTML->Children.back()->Kind = "TextComment";
  263   HTML->Children.back()->Text = " Testing.";
  264   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  265   HTML->Children.back()->Kind = "HTMLEndTagComment";
  266   HTML->Children.back()->Name = "ul";
  267   HTML->Children.back()->SelfClosing = true;
  269   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  270   CommentInfo *Verbatim = Top.Children.back().get();
  274   Verbatim->Children.emplace_back(std::make_unique<CommentInfo>());
  275   Verbatim->Children.back()->Kind = "VerbatimBlockLineComment";
  276   Verbatim->Children.back()->Text = " The description continues.";
  278   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  279   CommentInfo *ParamOut = Top.Children.back().get();
  284   ParamOut->Children.emplace_back(std::make_unique<CommentInfo>());
  285   ParamOut->Children.back()->Kind = "ParagraphComment";
  286   ParamOut->Children.back()->Children.emplace_back(
  286   ParamOut->Children.back()->Children.emplace_back(
  288   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  288   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  289   ParamOut->Children.back()->Children.emplace_back(
  289   ParamOut->Children.back()->Children.emplace_back(
  291   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  291   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  292   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  292   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  294   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  295   CommentInfo *ParamIn = Top.Children.back().get();
  299   ParamIn->Children.emplace_back(std::make_unique<CommentInfo>());
  300   ParamIn->Children.back()->Kind = "ParagraphComment";
  301   ParamIn->Children.back()->Children.emplace_back(
  301   ParamIn->Children.back()->Children.emplace_back(
  303   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  303   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  304   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  304   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  305   ParamIn->Children.back()->Children.emplace_back(
  305   ParamIn->Children.back()->Children.emplace_back(
  307   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  307   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  309   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  310   CommentInfo *Return = Top.Children.back().get();
  314   Return->Children.emplace_back(std::make_unique<CommentInfo>());
  315   Return->Children.back()->Kind = "ParagraphComment";
  316   Return->Children.back()->Children.emplace_back(
  316   Return->Children.back()->Children.emplace_back(
  318   Return->Children.back()->Children.back()->Kind = "TextComment";
  318   Return->Children.back()->Children.back()->Kind = "TextComment";
  319   Return->Children.back()->Children.back()->Text = "void";
  319   Return->Children.back()->Children.back()->Text = "void";
tools/clang/tools/extra/unittests/clang-doc/MergeTest.cpp
  172   OneParagraphComment->Children.push_back(std::move(OneTextComment));
  173   OneFullComment->Children.push_back(std::move(OneParagraphComment));
  192   TwoParagraphComment->Children.push_back(std::move(TwoTextComment));
  193   TwoFullComment->Children.push_back(std::move(TwoParagraphComment));
  219   ExpectedParagraphComment->Children.push_back(std::move(ExpectedTextComment));
  220   ExpectedFullComment->Children.push_back(std::move(ExpectedParagraphComment));
tools/clang/tools/extra/unittests/clang-doc/YAMLGeneratorTest.cpp
  278   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  279   CommentInfo *BlankLine = Top.Children.back().get();
  281   BlankLine->Children.emplace_back(std::make_unique<CommentInfo>());
  282   BlankLine->Children.back()->Kind = "TextComment";
  284   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  285   CommentInfo *Brief = Top.Children.back().get();
  287   Brief->Children.emplace_back(std::make_unique<CommentInfo>());
  288   Brief->Children.back()->Kind = "TextComment";
  289   Brief->Children.back()->Name = "ParagraphComment";
  290   Brief->Children.back()->Text = " Brief description.";
  292   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  293   CommentInfo *Extended = Top.Children.back().get();
  295   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  296   Extended->Children.back()->Kind = "TextComment";
  297   Extended->Children.back()->Text = " Extended description that";
  298   Extended->Children.emplace_back(std::make_unique<CommentInfo>());
  299   Extended->Children.back()->Kind = "TextComment";
  300   Extended->Children.back()->Text = " continues onto the next line.";
  302   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  303   CommentInfo *HTML = Top.Children.back().get();
  305   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  306   HTML->Children.back()->Kind = "TextComment";
  307   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  308   HTML->Children.back()->Kind = "HTMLStartTagComment";
  309   HTML->Children.back()->Name = "ul";
  310   HTML->Children.back()->AttrKeys.emplace_back("class");
  311   HTML->Children.back()->AttrValues.emplace_back("test");
  312   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  313   HTML->Children.back()->Kind = "HTMLStartTagComment";
  314   HTML->Children.back()->Name = "li";
  315   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  316   HTML->Children.back()->Kind = "TextComment";
  317   HTML->Children.back()->Text = " Testing.";
  318   HTML->Children.emplace_back(std::make_unique<CommentInfo>());
  319   HTML->Children.back()->Kind = "HTMLEndTagComment";
  320   HTML->Children.back()->Name = "ul";
  321   HTML->Children.back()->SelfClosing = true;
  323   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  324   CommentInfo *Verbatim = Top.Children.back().get();
  328   Verbatim->Children.emplace_back(std::make_unique<CommentInfo>());
  329   Verbatim->Children.back()->Kind = "VerbatimBlockLineComment";
  330   Verbatim->Children.back()->Text = " The description continues.";
  332   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  333   CommentInfo *ParamOut = Top.Children.back().get();
  338   ParamOut->Children.emplace_back(std::make_unique<CommentInfo>());
  339   ParamOut->Children.back()->Kind = "ParagraphComment";
  340   ParamOut->Children.back()->Children.emplace_back(
  340   ParamOut->Children.back()->Children.emplace_back(
  342   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  342   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  343   ParamOut->Children.back()->Children.emplace_back(
  343   ParamOut->Children.back()->Children.emplace_back(
  345   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  345   ParamOut->Children.back()->Children.back()->Kind = "TextComment";
  346   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  346   ParamOut->Children.back()->Children.back()->Text = " is a parameter.";
  348   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  349   CommentInfo *ParamIn = Top.Children.back().get();
  353   ParamIn->Children.emplace_back(std::make_unique<CommentInfo>());
  354   ParamIn->Children.back()->Kind = "ParagraphComment";
  355   ParamIn->Children.back()->Children.emplace_back(
  355   ParamIn->Children.back()->Children.emplace_back(
  357   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  357   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  358   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  358   ParamIn->Children.back()->Children.back()->Text = " is a parameter.";
  359   ParamIn->Children.back()->Children.emplace_back(
  359   ParamIn->Children.back()->Children.emplace_back(
  361   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  361   ParamIn->Children.back()->Children.back()->Kind = "TextComment";
  363   Top.Children.emplace_back(std::make_unique<CommentInfo>());
  364   CommentInfo *Return = Top.Children.back().get();
  368   Return->Children.emplace_back(std::make_unique<CommentInfo>());
  369   Return->Children.back()->Kind = "ParagraphComment";
  370   Return->Children.back()->Children.emplace_back(
  370   Return->Children.back()->Children.emplace_back(
  372   Return->Children.back()->Children.back()->Kind = "TextComment";
  372   Return->Children.back()->Children.back()->Kind = "TextComment";
  373   Return->Children.back()->Children.back()->Text = "void";
  373   Return->Children.back()->Children.back()->Text = "void";