Blame doxygen-1.8.20-links-using-ref-stopp-working.patch

Than Ngo 6f6455
commit dfc82af001c56254c6fde0affd009f80e19b1548
Than Ngo 6f6455
Author: Dimitri van Heesch <doxygen@gmail.com>
Than Ngo 6f6455
Date:   Mon Sep 21 12:20:57 2020 +0200
Than Ngo 6f6455
Than Ngo 6f6455
    issue #8037: Links using @ref stopped working in doxygen 1.8.19
Than Ngo 6f6455
Than Ngo 6f6455
diff --git a/src/classdef.cpp b/src/classdef.cpp
Than Ngo 6f6455
index c3cd3ee2..5e2b2fa1 100644
Than Ngo 6f6455
--- a/src/classdef.cpp
Than Ngo 6f6455
+++ b/src/classdef.cpp
Than Ngo 6f6455
@@ -1248,6 +1248,7 @@ void ClassDefImpl::distributeMemberGroupDocumentation()
Than Ngo 6f6455
 
Than Ngo 6f6455
 void ClassDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
   if (m_impl->memberGroupSDict)
Than Ngo 6f6455
   {
Than Ngo 6f6455
diff --git a/src/commentscan.l b/src/commentscan.l
Than Ngo 6f6455
index c151294d..ce495a1c 100644
Than Ngo 6f6455
--- a/src/commentscan.l
Than Ngo 6f6455
+++ b/src/commentscan.l
Than Ngo 6f6455
@@ -666,6 +666,7 @@ RCSTAG    "$"{ID}":"[^\n$]+"$"
Than Ngo 6f6455
                                             optList = QCStringList::split(',',optStr);
Than Ngo 6f6455
                                           }
Than Ngo 6f6455
                                           auto it = docCmdMap.find(cmdName.data());
Than Ngo 6f6455
+                                          //printf("lookup command '%s' found=%d\n",cmdName.data(),it!=docCmdMap.end());
Than Ngo 6f6455
                                           if (it!=docCmdMap.end()) // special action is required
Than Ngo 6f6455
                                           {
Than Ngo 6f6455
                                             int i=0;
Than Ngo 6f6455
diff --git a/src/docparser.cpp b/src/docparser.cpp
Than Ngo 6f6455
index 73131f67..b79f8c82 100644
Than Ngo 6f6455
--- a/src/docparser.cpp
Than Ngo 6f6455
+++ b/src/docparser.cpp
Than Ngo 6f6455
@@ -2448,8 +2448,8 @@ DocRef::DocRef(DocNode *parent,const QCString &target,const QCString &context) :
Than Ngo 6f6455
     }
Than Ngo 6f6455
     m_isSubPage    = pd && pd->hasParentPage();
Than Ngo 6f6455
     if (sec->type()!=SectionType::Page || m_isSubPage) m_anchor = sec->label();
Than Ngo 6f6455
-    //printf("m_text=%s,m_ref=%s,m_file=%s,m_refToAnchor=%d type=%d\n",
Than Ngo 6f6455
-    //    m_text.data(),m_ref.data(),m_file.data(),m_refToAnchor,sec->type);
Than Ngo 6f6455
+    //printf("m_text=%s,m_ref=%s,m_file=%s,type=%d\n",
Than Ngo 6f6455
+    //    m_text.data(),m_ref.data(),m_file.data(),m_refType);
Than Ngo 6f6455
     return;
Than Ngo 6f6455
   }
Than Ngo 6f6455
   else if (resolveLink(context,target,TRUE,&compound,anchor))
Than Ngo 6f6455
diff --git a/src/filedef.cpp b/src/filedef.cpp
Than Ngo 6f6455
index f07201d4..b74fda9b 100644
Than Ngo 6f6455
--- a/src/filedef.cpp
Than Ngo 6f6455
+++ b/src/filedef.cpp
Than Ngo 6f6455
@@ -311,6 +311,7 @@ void FileDefImpl::distributeMemberGroupDocumentation()
Than Ngo 6f6455
 
Than Ngo 6f6455
 void FileDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
   if (m_memberGroupSDict)
Than Ngo 6f6455
   {
Than Ngo 6f6455
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
Than Ngo 6f6455
index 9b333567..7cd6cf26 100644
Than Ngo 6f6455
--- a/src/groupdef.cpp
Than Ngo 6f6455
+++ b/src/groupdef.cpp
Than Ngo 6f6455
@@ -228,6 +228,7 @@ void GroupDefImpl::distributeMemberGroupDocumentation()
Than Ngo 6f6455
 
Than Ngo 6f6455
 void GroupDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
   MemberGroupSDict::Iterator mgli(*m_memberGroupSDict);
Than Ngo 6f6455
   MemberGroup *mg;
Than Ngo 6f6455
diff --git a/src/markdown.cpp b/src/markdown.cpp
Than Ngo 6f6455
index 3089b8e7..2e6ab3ea 100644
Than Ngo 6f6455
--- a/src/markdown.cpp
Than Ngo 6f6455
+++ b/src/markdown.cpp
Than Ngo 6f6455
@@ -2662,6 +2662,7 @@ QCString markdownFileNameToId(const QCString &fileName)
Than Ngo 6f6455
   int i = baseFn.findRev('.');
Than Ngo 6f6455
   if (i!=-1) baseFn = baseFn.left(i);
Than Ngo 6f6455
   QCString baseName = substitute(substitute(substitute(baseFn," ","_"),"/","_"),":","_");
Than Ngo 6f6455
+  //printf("markdownFileNameToId(%s)=md_%s\n",qPrint(fileName),qPrint(baseName));
Than Ngo 6f6455
   return "md_"+baseName;
Than Ngo 6f6455
 }
Than Ngo 6f6455
 
Than Ngo 6f6455
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
Than Ngo 6f6455
index 6d179c21..2f92ea01 100644
Than Ngo 6f6455
--- a/src/memberdef.cpp
Than Ngo 6f6455
+++ b/src/memberdef.cpp
Than Ngo 6f6455
@@ -4838,6 +4838,7 @@ ClassDef *MemberDefImpl::accessorClass() const
Than Ngo 6f6455
 
Than Ngo 6f6455
 void MemberDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
 }
Than Ngo 6f6455
 
Than Ngo 6f6455
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
Than Ngo 6f6455
index 88eea5d2..65456ac0 100644
Than Ngo 6f6455
--- a/src/namespacedef.cpp
Than Ngo 6f6455
+++ b/src/namespacedef.cpp
Than Ngo 6f6455
@@ -349,6 +349,7 @@ void NamespaceDefImpl::distributeMemberGroupDocumentation()
Than Ngo 6f6455
 
Than Ngo 6f6455
 void NamespaceDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
   MemberGroupSDict::Iterator mgli(*memberGroupSDict);
Than Ngo 6f6455
   MemberGroup *mg;
Than Ngo 6f6455
diff --git a/src/pagedef.cpp b/src/pagedef.cpp
Than Ngo 6f6455
index 09152def..75e50ed1 100644
Than Ngo 6f6455
--- a/src/pagedef.cpp
Than Ngo 6f6455
+++ b/src/pagedef.cpp
Than Ngo 6f6455
@@ -99,6 +99,7 @@ PageDefImpl::~PageDefImpl()
Than Ngo 6f6455
 
Than Ngo 6f6455
 void PageDefImpl::findSectionsInDocumentation()
Than Ngo 6f6455
 {
Than Ngo 6f6455
+  docFindSections(briefDescription(),this,docFile());
Than Ngo 6f6455
   docFindSections(documentation(),this,docFile());
Than Ngo 6f6455
 }
Than Ngo 6f6455