@@ -3135,7 +3135,7 @@ bool resolveLink(/* in */ const QCString &scName,
31353135
31363136 QCString linkRef=lr;
31373137 QCString linkRefWithoutTemplates = stripTemplateSpecifiersFromScope (linkRef,FALSE );
3138- // printf("ResolveLink linkRef=%s\n",qPrint(lr) );
3138+ AUTO_TRACE ( " scName='{}',ref='{}' " ,scName,lr );
31393139 const FileDef *fd = nullptr ;
31403140 const GroupDef *gd = nullptr ;
31413141 const PageDef *pd = nullptr ;
@@ -3147,6 +3147,7 @@ bool resolveLink(/* in */ const QCString &scName,
31473147 bool ambig = false ;
31483148 if (linkRef.isEmpty ()) // no reference name!
31493149 {
3150+ AUTO_TRACE_EXIT (" no_ref" );
31503151 return FALSE ;
31513152 }
31523153 else if ((pd=Doxygen::pageLinkedMap->find (linkRef))) // link to a page
@@ -3162,70 +3163,82 @@ bool resolveLink(/* in */ const QCString &scName,
31623163 {
31633164 *resContext=pd;
31643165 }
3166+ AUTO_TRACE_EXIT (" page" );
31653167 return TRUE ;
31663168 }
31673169 else if ((si=SectionManager::instance ().find (prefix+linkRef)))
31683170 {
31693171 *resContext=si->definition ();
31703172 resAnchor = si->label ();
3173+ AUTO_TRACE_EXIT (" section" );
31713174 return TRUE ;
31723175 }
31733176 else if ((pd=Doxygen::exampleLinkedMap->find (linkRef))) // link to an example
31743177 {
31753178 *resContext=pd;
3179+ AUTO_TRACE_EXIT (" example" );
31763180 return TRUE ;
31773181 }
31783182 else if ((gd=Doxygen::groupLinkedMap->find (linkRef))) // link to a group
31793183 {
31803184 *resContext=gd;
3185+ AUTO_TRACE_EXIT (" group" );
31813186 return TRUE ;
31823187 }
31833188 else if ((fd=findFileDef (Doxygen::inputNameLinkedMap,linkRef,ambig)) // file link
31843189 && fd->isLinkable ())
31853190 {
31863191 *resContext=fd;
3192+ AUTO_TRACE_EXIT (" file" );
31873193 return TRUE ;
31883194 }
31893195 else if ((cd=getClass (linkRef))) // class link
31903196 {
31913197 *resContext=cd;
31923198 resAnchor=cd->anchor ();
3199+ AUTO_TRACE_EXIT (" class" );
31933200 return TRUE ;
31943201 }
31953202 else if ((cd=getClass (linkRefWithoutTemplates))) // C#/Java generic class link
31963203 {
31973204 *resContext=cd;
31983205 resAnchor=cd->anchor ();
3206+ AUTO_TRACE_EXIT (" generic" );
31993207 return TRUE ;
32003208 }
32013209 else if ((cd=getClass (linkRef+" -p" ))) // Obj-C protocol link
32023210 {
32033211 *resContext=cd;
32043212 resAnchor=cd->anchor ();
3213+ AUTO_TRACE_EXIT (" protocol" );
32053214 return TRUE ;
32063215 }
32073216 else if ((cnd=getConcept (linkRef))) // C++20 concept definition
32083217 {
32093218 *resContext=cnd;
32103219 resAnchor=cnd->anchor ();
3220+ AUTO_TRACE_EXIT (" concept" );
32113221 return TRUE ;
32123222 }
32133223 else if ((nd=Doxygen::namespaceLinkedMap->find (linkRef)))
32143224 {
32153225 *resContext=nd;
3226+ AUTO_TRACE_EXIT (" namespace" );
32163227 return TRUE ;
32173228 }
32183229 else if ((dir=Doxygen::dirLinkedMap->find (FileInfo (linkRef.str ()).absFilePath ()+" /" ))
32193230 && dir->isLinkable ()) // TODO: make this location independent like filedefs
32203231 {
32213232 *resContext=dir;
3233+ AUTO_TRACE_EXIT (" directory" );
32223234 return TRUE ;
32233235 }
32243236 else // probably a member reference
32253237 {
32263238 const MemberDef *md = nullptr ;
32273239 bool res = resolveRef (scName,lr,TRUE ,resContext,&md);
32283240 if (md) resAnchor=md->anchor ();
3241+ AUTO_TRACE_EXIT (" member? res={}" ,res);
32293242 return res;
32303243 }
32313244}
0 commit comments