summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-15 10:33:40 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-15 10:33:40 (GMT)
commit5b5db5372a769fc15b29981164014b42815f9ae6 (patch)
tree7a10366e1cd84c77cf5360199b896b1460a3714a /src
parentb62ed55ca58ad80a64cbed98e8bfdaae408daf4c (diff)
downloadDoxygen-5b5db5372a769fc15b29981164014b42815f9ae6.zip
Doxygen-5b5db5372a769fc15b29981164014b42815f9ae6.tar.gz
Doxygen-5b5db5372a769fc15b29981164014b42815f9ae6.tar.bz2
Prevent writing automatic anchors to the tag file
Diffstat (limited to 'src')
-rw-r--r--src/definition.cpp2
-rw-r--r--src/tagreader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 86f8789..e18932e 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -528,7 +528,7 @@ void DefinitionImpl::writeDocAnchorsToTagFile(FTextStream &tagFile) const
SectionInfo *si;
for (;(si=sdi.current());++sdi)
{
- if (!si->generated && si->ref.isEmpty())
+ if (!si->generated && si->ref.isEmpty() && !si->label.startsWith("autotoc_md"))
{
//printf("write an entry!\n");
if (definitionType()==TypeMember) tagFile << " ";
diff --git a/src/tagreader.cpp b/src/tagreader.cpp
index e72db6a..4b99f0d 100644
--- a/src/tagreader.cpp
+++ b/src/tagreader.cpp
@@ -523,7 +523,7 @@ class TagFileParser : public QXmlDefaultHandler
case InMember: m_curMember->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
case InPackage: m_curPackage->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
case InDir: m_curDir->docAnchors.append(new TagAnchorInfo(m_fileName,m_curString,m_title)); break;
- default: warn("Unexpected tag 'docanchor' found"); break; // Not really necessary anymore
+ default: break; // will not be reached
}
}