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

References

tools/clang/tools/extra/clang-doc/MDGenerator.cpp
   60   if (I.Kind == "FullComment") {
   61     for (const auto &Child : I.Children)
   63   } else if (I.Kind == "ParagraphComment") {
   64     for (const auto &Child : I.Children)
   67   } else if (I.Kind == "BlockCommandComment") {
   68     OS << genEmphasis(I.Name);
   69     for (const auto &Child : I.Children)
   71   } else if (I.Kind == "InlineCommandComment") {
   72     OS << genEmphasis(I.Name) << " " << I.Text;
   72     OS << genEmphasis(I.Name) << " " << I.Text;
   73   } else if (I.Kind == "ParamCommandComment") {
   74     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   74     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   75     OS << genEmphasis(I.ParamName) << I.Text << Direction << "\n\n";
   75     OS << genEmphasis(I.ParamName) << I.Text << Direction << "\n\n";
   76   } else if (I.Kind == "TParamCommandComment") {
   77     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   77     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   78     OS << genEmphasis(I.ParamName) << I.Text << Direction << "\n\n";
   78     OS << genEmphasis(I.ParamName) << I.Text << Direction << "\n\n";
   79   } else if (I.Kind == "VerbatimBlockComment") {
   80     for (const auto &Child : I.Children)
   82   } else if (I.Kind == "VerbatimBlockLineComment") {
   83     OS << I.Text;
   85   } else if (I.Kind == "VerbatimLineComment") {
   86     OS << I.Text;
   88   } else if (I.Kind == "HTMLStartTagComment") {
   89     if (I.AttrKeys.size() != I.AttrValues.size())
   89     if (I.AttrKeys.size() != I.AttrValues.size())
   93     for (unsigned Idx = 0; Idx < I.AttrKeys.size(); ++Idx)
   94       Attrs << " \"" << I.AttrKeys[Idx] << "=" << I.AttrValues[Idx] << "\"";
   94       Attrs << " \"" << I.AttrKeys[Idx] << "=" << I.AttrValues[Idx] << "\"";
   96     std::string CloseTag = I.SelfClosing ? "/>" : ">";
   97     writeLine("<" + I.Name + Attrs.str() + CloseTag, OS);
   98   } else if (I.Kind == "HTMLEndTagComment") {
   99     writeLine("</" + I.Name + ">", OS);
  100   } else if (I.Kind == "TextComment") {
  101     OS << I.Text;
  103     OS << "Unknown comment kind: " << I.Kind << ".\n\n";