Skip to content

Commit 3109eca

Browse files
committed
issue #10964 C++ specialization: warning: explicit link request could not be resolved.
1 parent 0621149 commit 3109eca

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/util.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7047,14 +7047,23 @@ int computeQualifiedIndex(const QCString &name)
70477047
int lastSepPos = -1;
70487048
const char *p = name.data();
70497049
int i=l-2;
7050+
int sharpCount=0;
70507051
// --- begin optimized version of ts=name.findRev(">::");
70517052
int ts = -1;
70527053
while (i>=0)
70537054
{
7054-
if (p[i]=='>' && p[i+1]==':' && p[i+2]==':')
7055+
if (p[i]=='>')
70557056
{
7056-
ts=i;
7057-
break;
7057+
if (sharpCount==0 && p[i+1]==':' && p[i+2]==':')
7058+
{
7059+
ts=i;
7060+
break;
7061+
}
7062+
sharpCount++;
7063+
}
7064+
else if (p[i]=='<')
7065+
{
7066+
sharpCount--;
70587067
}
70597068
i--;
70607069
}

0 commit comments

Comments
 (0)