We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0621149 commit 3109ecaCopy full SHA for 3109eca
src/util.cpp
@@ -7047,14 +7047,23 @@ int computeQualifiedIndex(const QCString &name)
7047
int lastSepPos = -1;
7048
const char *p = name.data();
7049
int i=l-2;
7050
+ int sharpCount=0;
7051
// --- begin optimized version of ts=name.findRev(">::");
7052
int ts = -1;
7053
while (i>=0)
7054
{
- if (p[i]=='>' && p[i+1]==':' && p[i+2]==':')
7055
+ if (p[i]=='>')
7056
- ts=i;
7057
- break;
+ 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--;
7067
}
7068
i--;
7069
0 commit comments