Blame doxygen-1.8.16-#7248.patch
|
Than Ngo |
054d45 |
diff -up doxygen-1.8.16/src/tagreader.cpp.me doxygen-1.8.16/src/tagreader.cpp
|
|
Than Ngo |
054d45 |
--- doxygen-1.8.16/src/tagreader.cpp.me 2019-09-16 20:47:16.428896400 +0200
|
|
Than Ngo |
054d45 |
+++ doxygen-1.8.16/src/tagreader.cpp 2019-09-16 20:48:53.426648016 +0200
|
|
Than Ngo |
054d45 |
@@ -494,6 +494,23 @@ class TagFileParser : public QXmlDefault
|
|
Than Ngo |
054d45 |
|
|
Than Ngo |
054d45 |
void endDocAnchor()
|
|
Than Ngo |
054d45 |
{
|
|
Than Ngo |
054d45 |
+ // Check whether or not the tag is automatically generate, in that case ignore the tag.
|
|
Than Ngo |
054d45 |
+ switch(m_state)
|
|
Than Ngo |
054d45 |
+ {
|
|
Than Ngo |
054d45 |
+ case InClass:
|
|
Than Ngo |
054d45 |
+ case InFile:
|
|
Than Ngo |
054d45 |
+ case InNamespace:
|
|
Than Ngo |
054d45 |
+ case InGroup:
|
|
Than Ngo |
054d45 |
+ case InPage:
|
|
Than Ngo |
054d45 |
+ case InMember:
|
|
Than Ngo |
054d45 |
+ case InPackage:
|
|
Than Ngo |
054d45 |
+ case InDir:
|
|
Than Ngo |
054d45 |
+ if (QString(m_curString).startsWith("autotoc_md")) return;
|
|
Than Ngo |
054d45 |
+ break;
|
|
Than Ngo |
054d45 |
+ default:
|
|
Than Ngo |
054d45 |
+ warn("Unexpected tag 'docanchor' found");
|
|
Than Ngo |
054d45 |
+ return;
|
|
Than Ngo |
054d45 |
+ }
|
|
Than Ngo |
054d45 |
switch(m_state)
|
|
Than Ngo |
054d45 |
{
|
|
Than Ngo |
054d45 |
case InClass: m_curClass->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
|
|
Than Ngo |
054d45 |
@@ -504,7 +521,7 @@ class TagFileParser : public QXmlDefault
|
|
Than Ngo |
054d45 |
case InMember: m_curMember->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
|
|
Than Ngo |
054d45 |
case InPackage: m_curPackage->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
|
|
Than Ngo |
054d45 |
case InDir: m_curDir->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
|
|
Than Ngo |
054d45 |
- default: warn("Unexpected tag 'docanchor' found"); break;
|
|
Than Ngo |
054d45 |
+ default: warn("Unexpected tag 'docanchor' found"); break; // Not really necessary anymore
|
|
Than Ngo |
054d45 |
}
|
|
Than Ngo |
054d45 |
}
|
|
Than Ngo |
054d45 |
|