42#if !ENABLE_DOCPARSER_TRACING
46#define AUTO_TRACE(...) (void)0
47#define AUTO_TRACE_ADD(...) (void)0
48#define AUTO_TRACE_EXIT(...) (void)0
51#define INTERNAL_ASSERT(x) do {} while(0)
70 "uml",
"bpm",
"wire",
"dot",
"ditaa",
71 "salt",
"math",
"latex",
"gantt",
"mindmap",
72 "wbs",
"yaml",
"creole",
"json",
"flow",
73 "board",
"git",
"hcl",
"regex",
"ebnf",
74 "files",
"chen",
"chronology"
84 const char *p = s.
data();
90 if (c==
'{') c=
'<';
else if (c==
'}') c=
'>';
120 std::visit([&](
auto &&x)->
decltype(
auto) {
return x.setParent(newParent); }, *n);
163 size_t len=locSymName.
length();
166 if (locSymName.
at(len-1)!=
':') locSymName.
append(
":");
167 if (locSymName.
at(0)!=
':') locSymName.
prepend(
":");
185 Doxygen::searchIndex.addWord(word,false);
202 Doxygen::searchIndex.addWord(word,false);
218 if (
id.left(anchorPrefix.
length()) == anchorPrefix)
308 parser()->tokenizer.getLineNr(),
309 "block marked with {} for \\snippet should appear twice in file {}, found it {:d} times",
323 "No previous '\\include' or '\\dontinclude' command for '\\{}' present",
334 size_t so = o, bo = 0;
335 bool nonEmpty =
FALSE;
348 else if (!isspace(
static_cast<uint8_t
>(c)))
378 else if (!isspace(
static_cast<uint8_t
>(c)))
411 else if (!isspace(
static_cast<uint8_t
>(c)))
442 else if (!isspace(
static_cast<uint8_t
>(c)))
486 if (
parser()->context.memberDef &&
parser()->context.memberDef->name().at(0)==
'@')
545 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
618 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
620 if (tok.
is_any_of(TokenRetval::TK_COMMAND_AT, TokenRetval::TK_COMMAND_BS))
627 if (!tok.
is(TokenRetval::TK_WHITESPACE))
633 if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
647 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Illegal command '{:c}{}' as part of a \\secreflist",
652 else if (tok.
is(TokenRetval::TK_WHITESPACE))
658 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected token {} inside section reference list",
690 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
709 AUTO_TRACE(
"target='{}',context='{}'",target,context);
712 auto lang =
parser->context.lang;
753 bool isFile = compound ?
789 toFileDef(compound)->generateSourceFile()
803 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '{}' for \\ref command",
809 for (
auto &&elem : elements)
819 for (
auto &dn : children)
821 DocPara *para = std::get_if<DocPara>(&dn);
833 for (
auto &cn : children)
840 for (
auto &ccn : *opt_children)
854 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
860 case TokenRetval::TK_HTMLTAG:
873 if (
parser()->context.insideHtmlLink)
878 "Potential recursion while resolving \\ref command!");
903 if (numBibFiles>0 && cite && !cite->
text().
isEmpty())
916 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command found but no bib files specified via CITE_BIB_FILES!");
918 else if (cite==
nullptr)
920 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '{}' for \\cite command",
925 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command to '{}' does not have an associated number",
940 m_refText = m_refText.right(m_refText.length()-1);
947 if (compound && compound->isLinkable())
949 m_file = compound->getOutputFileBase();
950 m_ref = compound->getReference();
953 (
toFileDef(compound))->generateSourceFile()
963 warn_doc_error(parser->context.fileName,parser->tokenizer.getLineNr(),
"unable to resolve link to '{}' for \\link command",
975 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
981 case TokenRetval::TK_COMMAND_AT:
983 case TokenRetval::TK_COMMAND_BS:
999 case TokenRetval::TK_SYMBOL:
1000 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unsupported symbol '{}' found as part of a \\link",
1001 parser()->context.token->name);
1003 case TokenRetval::TK_HTMLTAG:
1004 if (
parser()->context.token->name!=
"see" || !isXmlLink)
1006 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected xml/html command {} found as part of a \\link",
1007 parser()->context.token->name);
1010 case TokenRetval::TK_LNKWORD:
1011 case TokenRetval::TK_WORD:
1020 else if ((p=w.
find(
'}'))!=-1)
1022 int l =
static_cast<int>(w.
length());
1026 result=w.
right(l-p-1);
1040 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1043 parser()->tokenizer.getLineNr(),
1044 "Unexpected end of comment while inside link command");
1064 p->relPath =
parser->context.relPath;
1074 if (fd==
nullptr && !
p->name.endsWith(
".dot"))
1085 "Possible candidates:\n{}",
p->name,
1093 "in any of the paths specified via DOTFILE_DIRS!",
p->name);
1102 p->relPath =
parser->context.relPath;
1112 if (fd==
nullptr && !
p->name.endsWith(
".msc"))
1123 "Possible candidates:\n{}",
qPrint(
p->name),
1131 "in any of the paths specified via MSCFILE_DIRS!",
p->name);
1142 p->relPath =
parser->context.relPath;
1152 if (fd==
nullptr && !
p->name.endsWith(
".dia"))
1163 "Possible candidates:\n{}",
p->name,
1171 "in any of the paths specified via DIAFILE_DIRS!",
p->name);
1181 p->relPath =
parser->context.relPath;
1191 if (fd==
nullptr && !
p->name.endsWith(
".puml"))
1194 if (fd==
nullptr && !
p->name.endsWith(
".pu"))
1206 "Possible candidates:\n{}",
p->name,
1214 "in any of the paths specified via PLANTUMLFILE_DIRS!",
p->name);
1232 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1259 QCString locName =
p->url.isEmpty() ?
p->name :
p->url;
1260 int len =
static_cast<int>(locName.
length());
1261 int fnd = locName.
find(
'?');
1262 if (fnd==-1) fnd=len;
1263 return fnd>=4 && locName.
mid(fnd-4,4)==
".svg";
1277 Token retval(TokenRetval::RetVal_OK);
1281 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1285 switch (tok.
value())
1287 case TokenRetval::TK_HTMLTAG:
1346 if (!
parser()->context.token->endTag)
1357 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <{}{}> found within <h{:d}> context",
1370 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1387 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1391 if (tok.
value()==TokenRetval::TK_HTMLTAG &&
1393 parser()->context.token->endTag
1405 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1417 Token retval(TokenRetval::TK_NONE);
1428 retval=par->
parse();
1430 while (retval.
is(TokenRetval::TK_NEWPARA));
1433 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1435 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <details> block");
1446 return retval.
is(TokenRetval::RetVal_EndHtmlDetails) ? Token::make_RetVal_OK() : retval;
1462 Token retval(TokenRetval::RetVal_OK);
1466 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1470 switch (tok.
value())
1472 case TokenRetval::TK_HTMLTAG:
1485 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <{}{}> found within <a href=...> context",
1486 parser()->context.token->endTag?
"/":
"",
parser()->context.token->name);
1497 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1500 " <a href=...> tag");
1512 Token retval(TokenRetval::RetVal_OK);
1522 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
1523 retval=par->parse();
1524 if (!par->isEmpty())
1533 if (retval.
is(TokenRetval::TK_LISTITEM))
1537 }
while (!retval.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF,
1538 TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection, TokenRetval::RetVal_Subsubsection,
1539 TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph, TokenRetval::RetVal_SubSubParagraph,
1540 TokenRetval::RetVal_EndInternal));
1544 while ((level==1 && retval.
is(TokenRetval::RetVal_Section)) ||
1545 (level==2 && retval.
is(TokenRetval::RetVal_Subsection)) ||
1546 (level==3 && retval.
is(TokenRetval::RetVal_Subsubsection)) ||
1547 (level==4 && retval.
is(TokenRetval::RetVal_Paragraph)) ||
1548 (level==5 && retval.
is(TokenRetval::RetVal_SubParagraph)) ||
1549 (level==6 && retval.
is(TokenRetval::RetVal_SubSubParagraph))
1558 if (retval.
is(TokenRetval::RetVal_Internal))
1560 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"\\internal command found inside internal section");
1572 Token retval(TokenRetval::RetVal_OK);
1575 if (!tok.
is(TokenRetval::TK_WHITESPACE))
1583 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1585 switch (tok.
value())
1587 case TokenRetval::TK_WHITESPACE:
1590 case TokenRetval::TK_WORD:
1591 case TokenRetval::TK_LNKWORD:
1594 case TokenRetval::TK_SYMBOL:
1616 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected symbol '{}' found as argument of \\addindex",
parser()->context.token->name);
1621 case TokenRetval::TK_COMMAND_AT:
1623 case TokenRetval::TK_COMMAND_BS:
1645 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected command {} found as argument of \\addindex",
1646 parser()->context.token->name);
1670 for (
const auto &opt :
attribs)
1672 if (opt.name==
"id" && !opt.value.isEmpty())
1697 Token retval = Token::make_TK_NONE();
1700 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1704 switch (tok.
value())
1706 case TokenRetval::TK_HTMLTAG:
1711 retval = Token::make_RetVal_OK();
1716 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <{}{}> found within <caption> context",
1717 parser()->context.token->endTag?
"/":
"",
parser()->context.token->name);
1728 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1743 Token retval = Token::make_RetVal_OK();
1754 retval=par->
parse();
1755 if (retval.
is(TokenRetval::TK_HTMLTAG))
1760 retval = Token::make_TK_NEWPARA();
1764 retval = Token::make_TK_NEWPARA();
1768 while (retval.
is_any_of(TokenRetval::TK_NEWPARA,TokenRetval::RetVal_EndParBlock));
1777 Token retval = Token::make_RetVal_OK();
1788 retval=par->
parse();
1789 if (retval.
is(TokenRetval::TK_HTMLTAG))
1794 retval = Token::make_TK_NEWPARA();
1798 retval = Token::make_TK_NEWPARA();
1802 while (retval.
is(TokenRetval::TK_NEWPARA));
1810 for (
const auto &attr :
attribs())
1812 if (attr.name.lower()==
"rowspan")
1814 return attr.value.toUInt();
1822 for (
const auto &attr :
attribs())
1824 if (attr.name.lower()==
"colspan")
1826 return std::max(1u,attr.value.toUInt());
1834 for (
const auto &attr :
attribs())
1838 if (attrName==
"align")
1840 if (attrValue==
"center")
1842 else if (attrValue==
"right")
1846 else if (attrName==
"class" && attrValue.
startsWith(
"markdowntable"))
1848 if (attrValue==
"markdowntableheadcenter")
1850 else if (attrValue==
"markdowntableheadright")
1852 else if (attrValue==
"markdowntableheadleft")
1854 else if (attrValue==
"markdowntableheadnone")
1856 else if (attrValue==
"markdowntablebodycenter")
1858 else if (attrValue==
"markdowntablebodyright")
1860 else if (attrValue==
"markdowntablebodyleft")
1862 else if (attrValue==
"markdowntablebodynone")
1872 for (
const auto &attr :
attribs())
1876 if (attrName==
"valign")
1878 if (attrValue==
"top")
1880 else if (attrValue==
"bottom")
1882 else if (attrValue==
"middle")
1897 const DocHtmlCell *cell = std::get_if<DocHtmlCell>(&n);
1910 Token retval = Token::make_RetVal_OK();
1922 if (tok.
is(TokenRetval::TK_HTMLTAG))
1935 "found <{}> instead!",
parser()->context.token->name);
1940 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1943 " for a html description title");
1948 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected <td> or <th> tag but found {} token instead!",
1962 retval=cell->
parse();
1963 isHeading = retval.
is(TokenRetval::RetVal_TableHCell);
1965 while (retval.
is_any_of(TokenRetval::RetVal_TableCell,TokenRetval::RetVal_TableHCell));
1975 Token retval = Token::make_RetVal_OK();
1986 if (tok.
is(TokenRetval::TK_HTMLTAG))
1998 "found <{}> instead!",
parser()->context.token->name);
2003 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2006 " for a html description title");
2011 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected <td> or <th> tag but found {} token instead!",
2024 while (retval.
is_any_of(TokenRetval::RetVal_TableCell,TokenRetval::RetVal_TableHCell));
2045 if (!
children().empty() && std::holds_alternative<DocHtmlRow>(
children().front()))
2055 Token retval = Token::make_RetVal_OK();
2064 if (tok.
is(TokenRetval::TK_HTMLTAG))
2082 retval = Token::make_RetVal_TableRow();
2093 retval=std::get<DocHtmlCaption>(*m_caption).parse();
2095 if (retval.
is(TokenRetval::RetVal_OK))
2104 "found <{}{}> instead!",
parser()->context.token->endTag ?
"/" :
"",
parser()->context.token->name);
2107 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2110 " for a <tr> or <caption> tag");
2119 while (retval.
is(TokenRetval::RetVal_TableRow))
2127 return retval.
is(TokenRetval::RetVal_EndTable) ? Token::make_RetVal_OK() : retval;
2133 Token retval = Token::make_RetVal_OK();
2142 bool isHeader=
FALSE;
2143 if (tok.
is(TokenRetval::TK_HTMLTAG))
2148 retval = Token::make_RetVal_TableRow();
2152 retval = Token::make_RetVal_TableRow();
2158 while (retval.
is(TokenRetval::RetVal_TableRow))
2162 retval=tr->parseXml(isHeader);
2197 DocHtmlRow *row = std::get_if<DocHtmlRow>(&rowNode);
2200 for (
auto &cellNode : row->
children())
2202 DocHtmlCell *cell = std::get_if<DocHtmlCell>(&cellNode);
2205 uint32_t rs = cell->
rowSpan();
2206 uint32_t cs = cell->
colSpan();
2208 for (
size_t i=0;i<rowSpans.size();i++)
2210 if (rowSpans[i].rowsLeft>0 &&
2211 rowSpans[i].column==colIdx)
2213 colIdx=rowSpans[i].column+1;
2217 if (rs>0) rowSpans.emplace_back(rs,colIdx);
2225 for (
size_t i=0;i<rowSpans.size();i++)
2227 if (rowSpans[i].rowsLeft>0) rowSpans[i].rowsLeft--;
2233 if (colIdx-1>maxCols) maxCols=colIdx-1;
2243 Token retval = Token::make_TK_NONE();
2247 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
2251 switch (tok.
value())
2253 case TokenRetval::TK_COMMAND_AT:
2255 case TokenRetval::TK_COMMAND_BS:
2258 bool isJavaLink=
FALSE;
2264 if (!tok.
is(TokenRetval::TK_WHITESPACE))
2273 if (!tok.
is(TokenRetval::TK_WORD))
2275 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token {} as the argument of '{:c}{}' command",
2293 if (!tok.
is(TokenRetval::TK_WHITESPACE))
2302 if (!tok.
is(TokenRetval::TK_WORD))
2304 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token {} as the argument of \\{} command",
2312 QCString leftOver = lnk->parse(isJavaLink);
2313 if (!leftOver.isEmpty())
2323 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Illegal command '{:c}{}' found as part of a <dt> tag",
2328 case TokenRetval::TK_SYMBOL:
2329 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unsupported symbol '{}' found as part of a <dt> tag",
2330 parser()->context.token->name);
2332 case TokenRetval::TK_HTMLTAG:
2337 retval = Token::make_RetVal_DescData();
2347 retval = Token::make_RetVal_DescTitle();
2352 retval = Token::make_RetVal_EndDesc();
2357 if (!
parser()->context.token->endTag)
2364 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <{}{}> found within <dt> context",
2365 parser()->context.token->endTag?
"/":
"",
parser()->context.token->name);
2377 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2393 Token retval = Token::make_TK_NONE();
2403 retval=par->
parse();
2405 while (retval.
is(TokenRetval::TK_NEWPARA));
2416 Token retval = Token::make_RetVal_OK();
2424 if (tok.
is(TokenRetval::TK_HTMLTAG))
2434 "found <{}> instead!",
parser()->context.token->name);
2439 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2442 " for a html description title");
2459 if (retval.is(TokenRetval::RetVal_DescData))
2462 while (retval.is(TokenRetval::RetVal_DescData))
2469 else if (!retval.is(TokenRetval::RetVal_DescTitle))
2474 }
while (retval.
is(TokenRetval::RetVal_DescTitle));
2476 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2478 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <dl> block");
2483 return retval.
is(TokenRetval::RetVal_EndDesc) ? Token::make_RetVal_OK() : retval;
2491 Token retval = Token::make_TK_NONE();
2502 retval=par->
parse();
2504 while (retval.
is(TokenRetval::TK_NEWPARA));
2514 Token retval = Token::make_TK_NONE();
2525 retval=par->
parse();
2526 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2530 if (retval.
is(TokenRetval::RetVal_ListItem))
2535 while (!retval.
is(TokenRetval::RetVal_CloseXml));
2548 Token retval = Token::make_RetVal_OK();
2557 if (tok.
is(TokenRetval::TK_HTMLTAG))
2566 ) &&
parser()->context.token->endTag
2572 retval = Token::make_RetVal_EndList();
2580 "found <{}{}> instead!",
parser()->context.token->endTag?
"/":
"",
parser()->context.token->name);
2585 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2590 " for a html list item");
2607 }
while (retval.
is(TokenRetval::RetVal_ListItem));
2609 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2611 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <{:c}l> block",
2617 return retval.
is(TokenRetval::RetVal_EndList) ? Token::make_RetVal_OK() : retval;
2623 Token retval = Token::make_RetVal_OK();
2632 if (tok.
is(TokenRetval::TK_HTMLTAG))
2643 "found <{}> instead!",
parser()->context.token->name);
2648 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2651 " for a html list item");
2665 retval=li->parseXml();
2666 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2668 }
while (retval.
is(TokenRetval::RetVal_ListItem));
2670 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2672 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <list type=\"{}\"> block",
2678 return (retval.
is_any_of(TokenRetval::RetVal_EndList,TokenRetval::RetVal_CloseXml) ||
parser()->context.token->name==
"list") ?
2679 Token::make_RetVal_OK() : retval;
2687 Token retval = Token::make_TK_NONE();
2698 retval=par->
parse();
2700 while (retval.
is(TokenRetval::TK_NEWPARA));
2703 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2705 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <blockquote> block");
2709 return retval.
is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2717 Token retval = Token::make_TK_NONE();
2728 retval=par->
parse();
2730 while (retval.
is(TokenRetval::TK_NEWPARA));
2734 return retval.
is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2761 Token rv = Token::make_TK_NONE();
2767 }
while (rv.
is(TokenRetval::RetVal_ListItem));
2768 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
2781 Token retval = Token::make_RetVal_OK();
2791 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
2792 retval=par->parse();
2793 if (!par->isEmpty())
2804 }
while (retval.
is(TokenRetval::TK_NEWPARA) &&
parser()->context.token->indent>
m_indent);
2823 Token retval = Token::make_RetVal_OK();
2830 switch (
parser()->context.token->id)
2852 while (retval.
is(TokenRetval::TK_LISTITEM) &&
2856 (
parser()->context.token->id==-1 ||
parser()->context.token->id>=num)
2872 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
2904 return m_title && std::get<DocTitle>(*m_title).hasTitle();
2916 std::get_if<DocTitle>(
m_title.get())->parse();
2920 if (!
children().empty() && std::holds_alternative<DocPara>(
children().back()))
2938 Token retval = par->parse();
2958 return Token::make_RetVal_OK();
2966 Token retval = Token::make_RetVal_OK();
2970 if (!
children().empty() && std::holds_alternative<DocPara>(
children().back()))
2972 std::get<DocPara>(
children().back()).markLast(
false);
2984 retval = par->parse();
2985 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2986 if (retval.
is(TokenRetval::RetVal_CloseXml))
2988 retval = Token::make_RetVal_OK();
3000 if (
children().empty() || (p=std::get_if<DocPara>(&
children().back()))==
nullptr)
3022 case See:
return "see";
3023 case Return:
return "return";
3025 case Authors:
return "author";
3026 case Version:
return "version";
3027 case Since:
return "since";
3028 case Date:
return "date";
3029 case Note:
return "note";
3030 case Warning:
return "warning";
3031 case Pre:
return "pre";
3032 case Post:
return "post";
3034 case Invar:
return "invariant";
3035 case Remark:
return "remark";
3038 case User:
return "user";
3039 case Rcs:
return "rcs";
3049 Token retval = Token::make_RetVal_OK();
3055 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3059 retval = Token::make_RetVal_EndParBlock();
3064 while (tok.
is(TokenRetval::TK_WORD))
3069 if (typeSeparator!=-1)
3075 if (
parent() && std::holds_alternative<DocParamSect>(*
parent()))
3077 std::get<DocParamSect>(*
parent()).m_hasTypeSpecifier=
true;
3096 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3098 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3099 "argument of command {}",saveCmdName);
3100 retval = Token::make_RetVal_EndParBlock();
3103 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3105 if (!tok.
is(TokenRetval::TK_NEWPARA))
3107 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token {} in comment block while parsing the "
3108 "argument of command {}",tok.
to_string(),saveCmdName);
3110 retval = Token::make_RetVal_EndParBlock();
3116 retval = par->
parse();
3128 Token retval = Token::make_RetVal_OK();
3149 retval = par->parse();
3171 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
3173 }
while (retval.
is(TokenRetval::RetVal_CloseXml) &&
3178 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3184 retval = Token::make_RetVal_OK();
3196 Token retval = Token::make_RetVal_OK();
3204 if (!
children().empty() && std::holds_alternative<DocParamList>(
children().back()))
3219 retval = pl->parseXml(cmdName);
3223 retval = pl->parse(cmdName);
3225 if (retval.
is(TokenRetval::RetVal_EndParBlock))
3227 retval = Token::make_RetVal_OK();
3246 bool needsSeparator =
FALSE;
3248 (ss=
children().get_last<DocSimpleSect>()) &&
3253 needsSeparator =
TRUE;
3260 Token rv = Token::make_RetVal_OK();
3269 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
3274 bool xmlContext=
FALSE,
3280 (ps=
children().get_last<DocParamSect>()) &&
3292 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
3300 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3308 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3310 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3311 "argument of command '{:c}{}'",cmdChar,cmdName);
3314 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3332 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3340 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3342 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"no emoji name given or unexpected end of comment block while parsing the "
3343 "argument of command '{:c}{}'",cmdChar,cmdName);
3347 else if (!tok.
is(TokenRetval::TK_WORD))
3362 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3370 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3372 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3373 "argument of command '{:c}{}'",cmdChar,cmdName);
3376 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3386 switch (opt->
kind())
3406 std::string lstFormat =
theTranslator->trWriteList(
static_cast<int>(lst->size())).str();
3407 static const reg::Ex marker(R
"(@(\d+))");
3412 for ( ; it!=
end ; ++it)
3414 const auto &match = *it;
3415 size_t newIndex = match.position();
3416 size_t matchLen = match.length();
3417 optionValue += lstFormat.substr(index,newIndex-index);
3418 unsigned long entryIndex = std::stoul(match[1].str());
3419 if (entryIndex<(
unsigned long)lst->size())
3421 optionValue += lst->at(entryIndex);
3423 index=newIndex+matchLen;
3425 optionValue+=lstFormat.substr(index);
3430 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Obsolete setting for '{:c}{}': '{}'",
3431 cmdChar,cmdName,
parser()->context.token->name);
3435 "Disabled setting (i.e. not supported in this doxygen executable) for '{:c}{}': '{}'",
3436 cmdChar,cmdName,
parser()->context.token->name);
3449 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unknown option for '{:c}{}': '{}'",
3450 cmdChar,cmdName,
parser()->context.token->name);
3460 ASSERT(retval.
is(TokenRetval::TK_WHITESPACE));
3463 if (retval.
is(TokenRetval::RetVal_OK))
3483 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3491 if (!tok.
is(TokenRetval::TK_WORD))
3505 bool specDateOnlyWS = !specDateRaw.
isEmpty() && specDate.
isEmpty();
3506 if (!specDate.
isEmpty() && !tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3508 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"invalid <date_time> argument for command '{:c}{}'",
3519 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"invalid <date_time> argument for command '{:c}{}': {}",
3520 cmdChar,cmdName,
err);
3532 if ((usedFormat&bitMask) && !(specFormat&bitMask))
3534 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"'{:c}{}' <format> parameter '{}' has {} related markers which are not specified in the <date_time> parameter '{}'. Filling in the current value for {} instead.",
3552 if (!tok.
is(TokenRetval::TK_WORD))
3565 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3574 if (!tok.
is(TokenRetval::TK_WORD))
3590 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3599 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3601 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3602 "argument of command {}", saveCmdName);
3605 else if (!tok.
is(TokenRetval::TK_WORD))
3629 (!n1_docIncOp && !n1_docWs) ||
3630 (n1_docWs && n2 && !n2_docIncOp);
3635 n1_docIncOp->markLast(
false);
3637 else if (n1_docWs && n2_docIncOp)
3650 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3659 if (!tok.
is(TokenRetval::TK_WORD))
3686 AUTO_TRACE(
"cmdName={} isJavaLink={}",cmdName,isJavaLink);
3689 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3697 if (!tok.
is(TokenRetval::TK_WORD))
3703 if (saveCmdName ==
"javalink")
3712 if (saveCmdName ==
"javalink")
3718 QCString leftOver = lnk->parse(isJavaLink);
3730 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3733 cmdChar,
qPrint(saveCmdName));
3738 if (!tok.
is(TokenRetval::TK_WORD))
3757 bool isBlock =
false;
3758 bool trimLeft =
false;
3759 bool localScope =
false;
3761 if (tok.
is(TokenRetval::TK_WORD) &&
parser()->context.token->name==
"{")
3767 auto contains = [&optList](
const char *kw)
3769 return std::find(optList.begin(),optList.end(),kw)!=optList.end();
3771 localScope = contains(
"local");
3772 if (contains(
"nostrip"))
3774 stripCodeComments =
false;
3776 else if (contains(
"strip"))
3778 stripCodeComments =
true;
3785 if (contains(
"lineno"))
3792 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3799 else if (tok.
is(TokenRetval::TK_WORD) &&
parser()->context.token->name==
"[")
3807 else if (!tok.
is(TokenRetval::TK_WHITESPACE))
3816 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3818 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3819 "argument of command {}",saveCmdName);
3822 else if (!tok.
is(TokenRetval::TK_WORD))
3836 if (!tok.
is(TokenRetval::TK_WORD))
3838 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected block identifier, but found token {} instead while parsing the {} command",
3853 blockId,isBlock,trimLeft);
3863 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3866 cmdChar,saveCmdName);
3870 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3872 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3873 "argument of command '{:c}{}'", cmdChar,saveCmdName);
3876 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3893 return retval.is(TokenRetval::RetVal_OK) ? Token::make_TK_NEWPARA() : retval;
3915 if (
parser()->context.xmlComment)
3921 while (i<l && (
parser()->context.token->verb.at(i)==
' ' ||
parser()->context.token->verb.at(i)==
'\n'))
3923 if (
parser()->context.token->verb.at(i)==
'\n') li=i+1;
3933 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3944 if (
parser()->context.memberDef)
3982 Token retval = Token::make_RetVal_OK();
3988 std::string str{cmdChar};
3992 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Found unexpanded alias '{:c}{}'. Check if number of arguments passed is correct.",cmdChar,cmdName);
4141 retval = Token::make_RetVal_Section();
4147 retval = Token::make_RetVal_Subsection();
4153 retval = Token::make_RetVal_Subsubsection();
4159 retval = Token::make_RetVal_Paragraph();
4165 retval = Token::make_RetVal_SubParagraph();
4171 retval = Token::make_RetVal_SubSubParagraph();
4191 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4203 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4215 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4227 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4239 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4251 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4265 int idx = fullMatch.
find(
'{');
4266 int idxEnd = fullMatch.
find(
"}",idx+1);
4272 for (
const auto &opt : optList)
4274 if (opt.empty())
continue;
4277 if (locOpt ==
"code")
4283 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unknown option '{}' for '\\iliteral'",opt);
4291 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4299 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"javadoc literal section ended without end marker");
4318 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4339 dv->setText(
parser()->context.token->verb);
4340 dv->setWidth(width);
4341 dv->setHeight(height);
4342 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4345 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"ignoring \\dot command because HAVE_DOT is not set");
4348 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4369 dv->setText(
parser()->context.token->verb);
4370 dv->setWidth(width);
4371 dv->setHeight(height);
4372 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4373 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4387 int idx = fullMatch.
find(
'{');
4388 int idxEnd = fullMatch.
find(
"}",idx+1);
4395 for (
const auto &opt : optList)
4397 if (opt.empty())
continue;
4405 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Multiple definition of engine for '\\startuml'");
4418 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Multiple use of filename for '\\startuml'");
4427 if (engine.
isEmpty()) engine =
"uml";
4433 assert(retval.is(TokenRetval::RetVal_OK));
4454 if (engine ==
"ditaa")
4456 dv->setUseBitmap(
true);
4458 else if (engine ==
"uml")
4460 int i = trimmedVerb.
find(
'\n');
4461 QCString firstLine = i==-1 ? trimmedVerb : trimmedVerb.
left(i);
4464 dv->setText(trimmedVerb);
4465 dv->setWidth(width);
4466 dv->setHeight(height);
4467 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4470 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"ignoring \\startuml command because PLANTUML_JAR_PATH is not set");
4473 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4481 retval = Token::make_RetVal_EndParBlock();
4540 retval = Token::make_RetVal_Internal();
4543 retval = Token::make_RetVal_EndInternal();
4612 "ignoring \\dotfile command because HAVE_DOT is not set");
4700 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected command '{}' in paragraph context",cmdName);
4703 INTERNAL_ASSERT(retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::RetVal_OK,TokenRetval::RetVal_SimpleSec
4704 TokenRetval::TK_LISTITEM,TokenRetval::TK_ENDLIST,TokenRetval::TK_NEWPARA
4705 TokenRetval::RetVal_Section,TokenRetval::RetVal_EndList
4706 TokenRetval::RetVal_Internal,TokenRetval::RetVal_SwitchLang
4707 TokenRetval::RetVal_EndInternal)
4714 const char *attrName,
4718 for (
const auto &opt : tagHtmlAttribs)
4720 if (opt.name==attrName)
4722 *result = opt.value;
4731 AUTO_TRACE(
"tagName={} #tagHtmlAttrs={}",tagName,tagHtmlAttribs.size());
4732 Token retval = Token::make_RetVal_OK();
4738 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"HTML tag ('<{}/>') may not use the 'empty tag' XHTML syntax.",
4744 if (!
parser()->context.token->emptyTag)
4752 if (!
parser()->context.token->emptyTag)
4760 if (
parser()->context.token->emptyTag)
break;
4767 retval = Token::make_RetVal_ListItem();
4789 if (
parser()->context.token->emptyTag)
break;
4790 if (
parser()->context.xmlComment)
4832 if (
parser()->context.token->emptyTag)
break;
4838 retval = Token::make_TK_NEWPARA();
4841 if (!
parser()->context.token->emptyTag)
4850 retval = Token::make_RetVal_DescTitle();
4860 retval = Token::make_RetVal_DescData();
4868 if (!
parser()->context.token->emptyTag)
4875 retval = Token::make_RetVal_TableRow();
4878 retval = Token::make_RetVal_TableCell();
4881 retval = Token::make_RetVal_TableHCell();
4928 if (!
parser()->context.token->emptyTag)
4935 if (!
parser()->context.token->emptyTag)
4945 if (!
parser()->context.token->emptyTag)
4948 while (n && !std::holds_alternative<DocHtmlDetails>(*n)) n=
::parent(n);
4958 retval = Token::make_TK_NEWPARA();
4972 retval = Token::make_TK_NEWPARA();
4978 retval = Token::make_RetVal_TableCell();
5048 retval = Token::make_RetVal_TableRow();
5052 retval = Token::make_RetVal_ListItem();
5067 retval = Token::make_RetVal_TableCell();
5081 if (
parser()->context.token->emptyTag)
5098 if (!leftOver.isEmpty())
5116 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Missing 'cref' or 'langword' attribute from <see> tag.");
5144 std::get<DocSimpleSect>(*vss).appendLinkWord(cref);
5145 retval = Token::make_RetVal_OK();
5201 Token retval = Token::make_RetVal_OK();
5211 retval = Token::make_RetVal_EndList();
5221 retval = Token::make_RetVal_EndList();
5237 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"found </details> tag without matching <details>");
5241 retval = Token::make_RetVal_EndHtmlDetails();
5247 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"found </blockquote> tag without matching <blockquote>");
5251 retval = Token::make_RetVal_EndBlockQuote();
5308 retval = Token::make_TK_NEWPARA();
5311 retval = Token::make_RetVal_EndDesc();
5320 retval = Token::make_RetVal_EndTable();
5373 retval = Token::make_TK_NEWPARA();
5387 retval = Token::make_RetVal_CloseXml();
5423 if (!std::get_if<DocAutoListItem>(n))
5431 const auto docAutoList = std::get_if<DocAutoList>(n);
5434 indent = docAutoList->indent();
5443 const auto docPara = std::get_if<DocPara>(n);
5449 return std::get<DocStyleChange>(*stack.top());
5459 indentStr.
fill(
' ',indent);
5474 Token retval = Token::make_TK_NONE();
5475 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
5479 if (tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD,TokenRetval::TK_SYMBOL,TokenRetval::TK_URL,
5480 TokenRetval::TK_COMMAND_AT,TokenRetval::TK_COMMAND_BS,TokenRetval::TK_HTMLTAG)
5487 case TokenRetval::TK_WORD:
5490 case TokenRetval::TK_LNKWORD:
5493 case TokenRetval::TK_URL:
5496 case TokenRetval::TK_WHITESPACE:
5514 case TokenRetval::TK_LISTITEM:
5518 while (n && !std::holds_alternative<DocAutoList>(*n)) n=
::parent(n);
5519 const DocAutoList *al = std::get_if<DocAutoList>(n);
5526 retval = Token::make_TK_LISTITEM();
5536 al = std::get_if<DocAutoList>(n);
5550 }
while (retval.
is(TokenRetval::TK_LISTITEM) &&
5555 if (retval.
is(TokenRetval::RetVal_SimpleSec))
5561 if (
parser()->context.token->name.startsWith(
"rcs:"))
5565 tok = Token::make_TK_RCSTAG();
5569 tok = Token::make_TK_COMMAND_BS();
5574 else if (retval.
is(TokenRetval::TK_ENDLIST))
5590 case TokenRetval::TK_ENDLIST:
5591 AUTO_TRACE_ADD(
"Found end of list inside of paragraph at line {}",
parser()->tokenizer.getLineNr());
5592 if (std::get_if<DocAutoListItem>(
parent()))
5595 if (al && al->
indent()>=
parser()->context.token->indent)
5598 retval = Token::make_TK_ENDLIST();
5604 "has invalid indent level");
5613 case TokenRetval::TK_COMMAND_AT:
5615 case TokenRetval::TK_COMMAND_BS:
5620 while (n && !std::holds_alternative<DocSimpleSect>(*n) &&
5621 !std::holds_alternative<DocParamSect>(*n))
5632 retval = Token::make_RetVal_SimpleSec();
5638 while (n && !std::holds_alternative<DocSimpleListItem>(*n)) n=
::parent(n);
5643 retval = Token::make_RetVal_ListItem();
5653 if (retval.
is(TokenRetval::RetVal_SimpleSec))
5659 if (
parser()->context.token->name.startsWith(
"rcs:"))
5663 tok = Token::make_TK_RCSTAG();
5667 tok = Token::make_TK_COMMAND_BS();
5672 else if (retval.
value()>TokenRetval::TK_NONE && retval.
value()<TokenRetval::RetVal_OK)
5678 else if (retval.
value()!=TokenRetval::RetVal_OK)
5685 case TokenRetval::TK_HTMLTAG:
5687 if (!
parser()->context.token->endTag)
5699 if (!retval.
is(TokenRetval::RetVal_OK))
5705 case TokenRetval::TK_SYMBOL:
5716 parser()->context.token->name);
5720 case TokenRetval::TK_NEWPARA:
5721 retval = Token::make_TK_NEWPARA();
5723 case TokenRetval::TK_RCSTAG:
5726 while (n && !std::holds_alternative<DocSimpleSect>(*n) &&
5727 !std::holds_alternative<DocParamSect>(*n))
5737 retval = Token::make_RetVal_SimpleSec();
5748 "Found unexpected token (id={})",tok.
to_string());
5753 retval=Token::make_TK_NONE();
5756 DocPara *par = std::get_if<DocPara>(
parser()->context.nodeStack.top());
5757 if (!
parser()->context.token->endTag && par &&
5758 retval.
is(TokenRetval::TK_NEWPARA) &&
parser()->context.token->name.lower() ==
"p")
5762 INTERNAL_ASSERT(retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::TK_NEWPARA,TokenRetval::TK_LISTITEM,
5763 TokenRetval::TK_ENDLIST,TokenRetval::RetVal_OK)
5775 Token retval = Token::make_RetVal_OK();
5778 if (!
m_id.isEmpty())
5800 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
5801 retval=par->parse();
5802 if (!par->isEmpty())
5811 if (retval.
is(TokenRetval::TK_LISTITEM))
5815 if (retval.
is(TokenRetval::RetVal_Internal))
5819 if (retval.is(TokenRetval::RetVal_EndInternal))
5821 retval = Token::make_RetVal_OK();
5824 }
while (!retval.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF, TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection,
5825 TokenRetval::RetVal_Subsubsection, TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph,
5826 TokenRetval::RetVal_SubSubParagraph, TokenRetval::RetVal_EndInternal)
5833 if (retval.
is(TokenRetval::RetVal_Subsection) &&
m_level<=1)
5836 while (retval.
is(TokenRetval::RetVal_Subsection))
5845 else if (retval.
is(TokenRetval::RetVal_Subsubsection) &&
m_level<=2)
5851 parser()->tokenizer.getLineNr(),
5852 "Unexpected subsubsection command found inside {}!",
5856 while (retval.
is(TokenRetval::RetVal_Subsubsection))
5863 if (!(
m_level < 2 && retval.
is(TokenRetval::RetVal_Subsection)))
break;
5865 else if (retval.
is(TokenRetval::RetVal_Paragraph) &&
m_level<=3)
5871 "Unexpected paragraph command found inside {}!",
5875 while (retval.
is(TokenRetval::RetVal_Paragraph))
5882 if (!(
m_level<3 && (retval.
is_any_of(TokenRetval::RetVal_Subsection,TokenRetval::RetVal_Subsubsection))))
break;
5884 else if (retval.
is(TokenRetval::RetVal_SubParagraph) &&
m_level<=4)
5890 "Unexpected subparagraph command found inside {}!",
5894 while (retval.
is(TokenRetval::RetVal_SubParagraph))
5901 if (!(
m_level<4 && (retval.
is_any_of(TokenRetval::RetVal_Subsection,TokenRetval::RetVal_Subsubsection,TokenRetval::RetVal_Paragraph))))
break;
5903 else if (retval.
is(TokenRetval::RetVal_SubSubParagraph) &&
m_level<=5)
5909 "Unexpected subsubparagraph command found inside {}!",
5913 while (retval.
is(TokenRetval::RetVal_SubSubParagraph))
5920 if (!(
m_level<5 && (retval.
is_any_of( TokenRetval::RetVal_Subsection, TokenRetval::RetVal_Subsubsection,
5921 TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph))))
break;
5930 TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection,
5931 TokenRetval::RetVal_Subsubsection, TokenRetval::RetVal_Paragraph,
5932 TokenRetval::RetVal_SubParagraph, TokenRetval::RetVal_SubSubParagraph,
5933 TokenRetval::RetVal_Internal, TokenRetval::RetVal_EndInternal)
5949 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
5953 case TokenRetval::TK_WORD:
5956 case TokenRetval::TK_WHITESPACE:
5959 case TokenRetval::TK_SYMBOL:
5969 parser()->context.token->name);
5973 case TokenRetval::TK_COMMAND_AT:
5975 case TokenRetval::TK_COMMAND_BS:
6037 parser()->context.token->name);
6061 Token retval = Token::make_TK_NONE();
6071 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
6072 retval=par->parse();
6073 if (par->isEmpty() && par->attribs().empty())
6082 auto checkParagraph = [
this,&retval](
Token t,
int level,
const char *sectionType,
const char *parentSectionType) {
6088 parser()->tokenizer.getLineNr(),
6089 "found {} command (id: '{}') outside of {} context!",
6090 sectionType,
parser()->context.token->sectionId,parentSectionType);
6094 if (!
parser()->context.token->sectionId.isEmpty())
6107 sectionType,
parser()->context.token->sectionId,sectionType);
6108 retval = Token::make_TK_NONE();
6113 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Missing id for {}; ignoring {}",sectionType,sectionType);
6114 retval = Token::make_TK_NONE();
6119 checkParagraph(Token::make_RetVal_SubSubParagraph(), 6,
"subsubparagraph",
"subparagraph" );
6120 checkParagraph(Token::make_RetVal_SubParagraph(), 5,
"subparagraph",
"paragraph" );
6121 checkParagraph(Token::make_RetVal_Paragraph(), 4,
"paragraph",
"subsubsection" );
6122 checkParagraph(Token::make_RetVal_Subsubsection(), 3,
"subsubsection",
"subsection" );
6123 checkParagraph(Token::make_RetVal_Subsection(), 2,
"subsection",
"section" );
6125 if (retval.
is(TokenRetval::TK_LISTITEM))
6129 if (retval.
is(TokenRetval::RetVal_Internal))
6134 }
while (!retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::RetVal_Section));
6139 while (retval.
is(TokenRetval::RetVal_Section))
6141 if (!
parser()->context.token->sectionId.isEmpty())
6154 retval = Token::make_TK_NONE();
6160 retval = Token::make_TK_NONE();
bool isAliasCmd(std::string_view aliasCmd)
static AnchorGenerator & instance()
Returns the singleton instance.
QCString anchorPrefix() const
const CiteInfo * find(const QCString &label) const
Return the citation info for a given label.
static CitationManager & instance()
QCString fileName() const
Class representing a Boolean type option.
QCString * valueStringRef()
Class representing an enum type option.
static ConfigImpl * instance()
ConfigOption * get(const QCString &name) const
Class representing an integer type option.
QCString * valueStringRef()
Class representing a list type option.
Abstract base class for any configuration option.
@ O_Disabled
Disabled compile time option.
@ O_Enum
A fixed set of items.
@ O_Obsolete
An obsolete option.
@ O_Info
A section header.
Class representing a string type option.
The common base class of all entity definitions found in the sources.
virtual bool isLinkable() const =0
virtual DefType definitionType() const =0
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual QCString getReference() const =0
virtual QCString getSourceFileBase() const =0
virtual QCString documentation() const =0
virtual QCString getOutputFileBase() const =0
virtual Definition * getOuterScope() const =0
virtual const QCString & name() const =0
DocAnchor(DocParser *parser, DocNodeVariant *parent, const QCString &id, bool newAnchor)
Node representing an auto List.
bool isCheckedList() const
DocAutoList(DocParser *parser, DocNodeVariant *parent, int indent, bool isEnumList, int depth, bool isCheckedList)
Node representing an item of a auto list.
DocAutoListItem(DocParser *parser, DocNodeVariant *parent, int indent, int num)
Node representing a citation of some bibliographic reference.
DocCite(DocParser *parser, DocNodeVariant *parent, const QCString &target, const QCString &context)
DocCompoundNode(DocParser *parser, DocNodeVariant *parent)
DocDiaFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
std::unique_ptr< Private > p
DocDiagramFileBase(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
DocDotFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Node representing an emoji.
DocEmoji(DocParser *parser, DocNodeVariant *parent, const QCString &symName)
Node representing a horizontal ruler.
Node representing an HTML blockquote.
DocHtmlCaption(DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs)
const HtmlAttribList & attribs() const
Node representing a HTML table cell.
Valignment valignment() const
void setColumnIndex(uint32_t idx)
void setRowIndex(uint32_t idx)
void markLast(bool v=TRUE)
void markFirst(bool v=TRUE)
Alignment alignment() const
const HtmlAttribList & attribs() const
Node representing a HTML description data.
Node representing a Html description list.
Node representing a Html description item.
const HtmlAttribList & attribs() const
void parseSummary(DocNodeVariant *, HtmlAttribList &attribs)
const DocNodeVariant * summary() const
std::unique_ptr< DocNodeVariant > m_summary
Node representing a Html list.
Node representing a HTML list item.
Node representing a HTML table row.
Token parseXml(bool header)
void setVisibleCells(uint32_t n)
void setRowIndex(uint32_t idx)
Node representing a HTML table.
std::unique_ptr< DocNodeVariant > m_caption
void computeTableGrid()
determines the location of all cells in a grid, resolving row and column spans.
const DocNodeVariant * caption() const
const DocNodeVariant * firstRow() const
const HtmlAttribList & attribs() const
DocImage(DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs, const QCString &name, Type t, const QCString &url=QCString(), bool inlineImage=TRUE)
std::unique_ptr< Private > p
Node representing a include/dontinclude operator block.
const char * typeAsString() const
QCString m_includeFileName
void markLast(bool v=TRUE)
Node representing an included text block from file.
Node representing an entry in the index.
Node representing an internal section of documentation.
DocInternalRef(DocParser *parser, DocNodeVariant *parent, const QCString &target)
Node representing a line break.
Node representing a link to some item.
DocLink(DocParser *parser, DocNodeVariant *parent, const QCString &target)
QCString parse(bool, bool isXmlLink=FALSE)
DocLinkedWord(DocParser *parser, DocNodeVariant *parent, const QCString &word, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &tooltip)
DocMscFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
DocNode(DocParser *parser, DocNodeVariant *parent)
void setInsidePreformatted(bool p)
DocNodeVariant * thisVariant()
DocNodeVariant * parent()
Node representing an block of paragraphs.
Node representing a paragraph in the documentation tree.
Token handleSimpleSection(DocSimpleSect::Type t, bool xmlContext=FALSE)
void handleLink(const QCString &cmdName, bool isJavaLink)
void handleCite(char cmdChar, const QCString &cmdName)
DocPara(DocParser *parser, DocNodeVariant *parent)
void handleInclude(const QCString &cmdName, DocInclude::Type t)
Token handleCommand(char cmdChar, const QCString &cmdName)
void handleDoxyConfig(char cmdChar, const QCString &cmdName)
void handleSection(char cmdChar, const QCString &cmdName)
void handleFile(const QCString &cmdName)
void handleIFile(char cmdChar, const QCString &cmdName)
Token handleParamSection(const QCString &cmdName, DocParamSect::Type t, bool xmlContext, int direction)
void markLast(bool v=TRUE)
Token handleHtmlStartTag(const QCString &tagName, const HtmlAttribList &tagHtmlAttribs)
void handleEmoji(char cmdChar, const QCString &cmdName)
void handleIncludeOperator(const QCString &cmdName, DocIncOperator::Type t)
void markFirst(bool v=TRUE)
void handleRef(char cmdChar, const QCString &cmdName)
void handleILine(char cmdChar, const QCString &cmdName)
void setAttribs(const HtmlAttribList &attribs)
Token handleHtmlHeader(const HtmlAttribList &tagHtmlAttribs, int level)
void handleShowDate(char cmdChar, const QCString &cmdName)
Token handleHtmlEndTag(const QCString &tagName)
bool injectToken(Token tok, const QCString &tokText)
void markFirst(bool b=TRUE)
Token parseXml(const QCString ¶mName)
void markLast(bool b=TRUE)
Token parse(const QCString &cmdName)
DocParamSect::Type m_type
Node representing a parameter section.
friend class DocParamList
Token parse(const QCString &cmdName, bool xmlContext, Direction d)
bool defaultHandleToken(DocNodeVariant *parent, Token tok, DocNodeList &children, bool handleWord=TRUE)
void handleLinkedWord(DocNodeVariant *parent, DocNodeList &children, bool ignoreAutoLinkFlag=FALSE)
void handleInternalRef(DocNodeVariant *parent, DocNodeList &children)
void handleParameterType(DocNodeVariant *parent, DocNodeList &children, const QCString ¶mTypes)
void readTextFileByName(const QCString &file, QCString &text)
Token handleAHref(DocNodeVariant *parent, DocNodeList &children, const HtmlAttribList &tagHtmlAttribs)
Token internalValidatingParseDoc(DocNodeVariant *parent, DocNodeList &children, const QCString &doc)
void handleInitialStyleCommands(DocNodeVariant *parent, DocNodeList &children)
void handleStyleLeave(DocNodeVariant *parent, DocNodeList &children, DocStyleChange::Style s, const QCString &tagName)
void handlePendingStyleCommands(DocNodeVariant *parent, DocNodeList &children)
void handleImage(DocNodeVariant *parent, DocNodeList &children)
void handleStyleEnter(DocNodeVariant *parent, DocNodeList &children, DocStyleChange::Style s, const QCString &tagName, const HtmlAttribList *attribs)
void handlePrefix(DocNodeVariant *parent, DocNodeList &children)
Token handleStyleArgument(DocNodeVariant *parent, DocNodeList &children, const QCString &cmdName)
void handleAnchor(DocNodeVariant *parent, DocNodeList &children)
void handleImg(DocNodeVariant *parent, DocNodeList &children, const HtmlAttribList &tagHtmlAttribs)
void defaultHandleTitleAndSize(const CommandType cmd, DocNodeVariant *parent, DocNodeList &children, QCString &width, QCString &height)
void handleUnclosedStyleCommands()
void errorHandleDefaultToken(DocNodeVariant *parent, Token tok, DocNodeList &children, const QCString &txt)
DocPlantUmlFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Node representing a reference to some item.
SectionType m_sectionType
DocRef(DocParser *parser, DocNodeVariant *parent, const QCString &target, const QCString &context)
Node representing a reference to a section.
DocSecRefItem(DocParser *parser, DocNodeVariant *parent, const QCString &target)
Node representing a list of section references.
Node representing a normal section.
std::unique_ptr< DocNodeVariant > m_title
DocSection(DocParser *parser, DocNodeVariant *parent, int level, const QCString &id)
const DocNodeVariant * title() const
Node representing a simple list.
Node representing a simple list item.
std::unique_ptr< DocNodeVariant > m_paragraph
DocSimpleListItem(DocParser *parser, DocNodeVariant *parent)
Node representing a simple section.
QCString typeString() const
Token parse(bool userTitle, bool needsSeparator)
DocSimpleSect(DocParser *parser, DocNodeVariant *parent, Type t)
const DocNodeVariant * title() const
void appendLinkWord(const QCString &word)
std::unique_ptr< DocNodeVariant > m_title
Node representing a separator between two simple sections of the same type.
Node representing a style change.
const char * styleString() const
Node representing a special symbol.
static HtmlEntityMapper::SymType decodeSymbol(const QCString &symName)
Node representing a simple section title.
void parseFromString(DocNodeVariant *, const QCString &title)
void setStateILiteralOpt()
void setStatePlantUMLOpt()
void setInsidePre(bool b)
void unputString(const QCString &tag)
void setStateDoxyConfig()
void setStateQuotedString()
void pushBackHtmlTag(const QCString &tag)
Node representing a URL (or email address)
Node representing a verbatim, unparsed text fragment.
DocVerbatim(DocParser *parser, DocNodeVariant *parent, const QCString &context, const QCString &text, Type t, bool isExample, const QCString &exampleFile, bool isBlock=FALSE, const QCString &lang=QCString())
std::unique_ptr< Private > p
QCString exampleFile() const
void setEngine(const QCString &e)
Node representing a VHDL flow chart.
DocVhdlFlow(DocParser *parser, DocNodeVariant *parent)
Node representing some amount of white space.
Node representing a word.
DocWord(DocParser *parser, DocNodeVariant *parent, const QCString &word)
Node representing an item of a cross-referenced list.
DocXRefItem(DocParser *parser, DocNodeVariant *parent, int id, const QCString &key)
static FileNameLinkedMap * plantUmlFileNameLinkedMap
static FileNameLinkedMap * dotFileNameLinkedMap
static NamespaceDefMutable * globalScope
static FileNameLinkedMap * mscFileNameLinkedMap
static FileNameLinkedMap * diaFileNameLinkedMap
static QCString htmlFileExtension
static PageLinkedMap * pageLinkedMap
static SearchIndexIntf searchIndex
static EmojiEntityMapper & instance()
Returns the one and only instance of the Emoji entity mapper.
int symbol2index(const std::string &symName) const
Returns a code for the requested Emoji entity name.
A model of a file symbol.
virtual QCString absFilePath() const =0
void clear()
clears the contents
size_t size() const
returns the number of elements
iterator end()
returns an iterator to the end
T & back()
access the last element
void pop_back()
removes the last element
bool empty() const
checks whether the container is empty
void emplace_back(Args &&...args)
T & front()
access the first element
Class representing a list of HTML attributes.
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
SymType name2sym(const QCString &symName) const
Give code of the requested HTML entity name.
const T * find(const std::string &key) const
A model of a class/file/namespace member symbol.
virtual const ClassDef * getClassDef() const =0
virtual const MemberDef * reimplements() const =0
virtual QCString objCMethodName(bool localLink, bool showStatic) const =0
A model of a page symbol.
virtual bool hasParentPage() const =0
This is an alternative implementation of QCString.
int find(char c, int index=0, bool cs=TRUE) const
void fill(char c, int len=-1)
Fills a string with a predefined character.
QCString & prepend(const char *s)
size_t length() const
Returns the length of the string, not counting the 0-terminator.
bool startsWith(const char *s) const
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
bool endsWith(const char *s) const
char & at(size_t i)
Returns a reference to the character at index i.
bool isEmpty() const
Returns TRUE iff the string is empty.
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
const std::string & str() const
QCString & append(char c)
QCString right(size_t len) const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
std::string_view view() const
QCString left(size_t len) const
This struct represents an item in the list of references.
List of cross-referenced items.
QCString sectionTitle() const
QCString fileName() const
RefItem * find(int itemId)
static RefListManager & instance()
class that provide information about a section.
QCString fileName() const
static SectionManager & instance()
returns a reference to the singleton
static constexpr int Anchor
static constexpr int Table
constexpr int level() const
static constexpr int Page
bool is(TokenRetval rv) const
TOKEN_SPECIFICATIONS RETVAL_SPECIFICATIONS const char * to_string() const
TokenRetval value() const
bool is_any_of(ARGS... args) const
char command_to_char() const
static void createFlowChart(const MemberDef *)
Class representing a regular expression.
Iterator class to iterator through matches.
#define Config_getList(name)
#define Config_getBool(name)
#define Config_getString(name)
std::unordered_set< std::string > StringUnorderedSet
std::vector< std::string > StringVector
QCString formatDateTime(const QCString &format, const std::tm &dt, int &formatUsed)
Return a string representation for a given std::tm value that is formatted according to the pattern g...
QCString dateTimeFromString(const QCString &spec, std::tm &dt, int &format)
Returns the filled in std::tm for a given string representing a date and/or time.
constexpr const char * SF_bit2str(int bitNumber)
Helper function that returns the name related one of the SF bits.
constexpr int SF_NumBits
number of bits in SF vector
DirIterator end(const DirIterator &) noexcept
#define AUTO_TRACE_ADD(...)
static const char * g_sectionLevelToName[]
static QCString stripKnownExtensions(const QCString &text)
static void unescapeCRef(QCString &s)
static const StringUnorderedSet g_plantumlEngine
#define INTERNAL_ASSERT(x)
static void flattenParagraphs(DocNodeVariant *root, DocNodeList &children)
#define AUTO_TRACE_EXIT(...)
static bool findAttribute(const HtmlAttribList &tagHtmlAttribs, const char *attrName, QCString *result)
std::vector< ActiveRowSpan > RowSpanList
List of ActiveRowSpan classes.
static void setParent(DocNodeVariant *n, DocNodeVariant *newParent)
static bool checkIfHtmlEndTagEndsAutoList(DocParser *parser, const DocNodeVariant *n)
std::variant< DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocCite, DocStyleChange, DocSymbol, DocEmoji, DocWhiteSpace, DocSeparator, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocAutoList, DocAutoListItem, DocTitle, DocXRefItem, DocImage, DocDotFile, DocMscFile, DocDiaFile, DocVhdlFlow, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocParBlock, DocSimpleList, DocHtmlList, DocSimpleSect, DocSimpleSectSep, DocParamSect, DocPara, DocParamList, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocHtmlBlockQuote, DocText, DocRoot, DocHtmlDetails, DocHtmlSummary, DocPlantUmlFile > DocNodeVariant
constexpr bool holds_one_of_alternatives(const DocNodeVariant &v)
returns true iff v holds one of types passed as template parameters
DocNodeList * call_method_children(DocNodeVariant *v)
constexpr DocNodeVariant * parent(DocNodeVariant *n)
returns the parent node of a given node n or nullptr if the node has no parent.
std::unique_ptr< DocNodeVariant > createDocNode(Args &&...args)
Private header shared between docparser.cpp and docnode.cpp.
bool insideUL(const DocNodeVariant *n)
bool insideTable(const DocNodeVariant *n)
IterableStack< const DocNodeVariant * > DocStyleChangeStack
bool insidePRE(const DocNodeVariant *n)
bool insideLI(const DocNodeVariant *n)
bool insideDL(const DocNodeVariant *n)
bool insideBlockQuote(const DocNodeVariant *n)
bool insideDetails(const DocNodeVariant *n)
bool insideOL(const DocNodeVariant *n)
FileDef * toFileDef(Definition *d)
GroupDef * toGroupDef(Definition *d)
Translator * theTranslator
QCString markdownFileNameToId(const QCString &fileName)
processes string s and converts markdown into doxygen/html commands.
MemberDef * toMemberDef(Definition *d)
#define warn(file, line, fmt,...)
#define warn_doc_error(file, line, fmt,...)
const Mapper< HtmlTagType > * htmlTagMapper
const Mapper< CommandType > * cmdMapper
QCString trunc(const QCString &s, size_t numChars=15)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
const char * qPrint(const char *s)
ActiveRowSpan(uint32_t rows, uint32_t col)
virtual QCString text() const =0
virtual QCString label() const =0
void move_append(DocNodeList &l)
moves the element of list l at the end of this list.
void append(Args &&... args)
Append a new DocNodeVariant to the list by constructing it with type T and parameters Args.
T * get_last()
Returns a pointer to the last element in the list if that element exists and holds a T,...
StringMultiSet retvalsFound
bool includeFileShowLineNo
DocStyleChangeStack styleStack
StringMultiSet paramsFound
DefinitionStack copyStack
const MemberDef * memberDef
QCString linkToText(SrcLangExt lang, const QCString &link, bool isFileName)
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
QCString showFileDefMatches(const FileNameLinkedMap *fnMap, const QCString &n)
QCString stripScope(const QCString &name)
bool resolveLink(const QCString &scName, const QCString &lr, bool, const Definition **resContext, QCString &resAnchor, SrcLangExt lang, const QCString &prefix)
QCString convertNameToFile(const QCString &name, bool allowDots, bool allowUnderscore)
if(strLen >35 &&floatingIndex >30 &&autoBreak)
StringVector split(const std::string &s, const std::string &delimiter)
split input string s by string delimiter delimiter.
QCString stripLeadingAndTrailingEmptyLines(const QCString &s, int &docLine)
Special version of QCString::stripWhiteSpace() that only strips completely blank lines.
QCString stripIndentation(const QCString &s)
FileDef * findFileDef(const FileNameLinkedMap *fnMap, const QCString &n, bool &ambig)
A bunch of utility functions.