Skip to content

Commit 41a489c

Browse files
committed
Fix for regression no longer being enable to resolve \ref ::A::f
1 parent 6c329ac commit 41a489c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,8 @@ GetDefResult getDefsNew(const GetDefInput &input)
22752275
{
22762276
GetDefResult result;
22772277
if (input.memberName.isEmpty()) return result;
2278+
AUTO_TRACE("getDefsNew(scopeName={},memberName={},forceEmptyScope={})",
2279+
input.scopeName,input.memberName,input.forceEmptyScope);
22782280

22792281
//printf("@@ --- getDefsNew(%s,%s)-----------\n",qPrint(scName),qPrint(mbName));
22802282
const Definition *scope = Doxygen::globalScope;
@@ -3101,7 +3103,7 @@ bool resolveRef(/* in */ const QCString &scName,
31013103
}
31023104

31033105
QCString scopeStr=scName;
3104-
if (nameStr.length()>scopeStr.length() && leftScopeMatch(scopeStr,nameStr))
3106+
if (!explicitScope && nameStr.length()>scopeStr.length() && leftScopeMatch(scopeStr,nameStr))
31053107
{
31063108
nameStr=nameStr.mid(scopeStr.length()+2);
31073109
}

0 commit comments

Comments
 (0)