From d00d094bd4fda5c53ef21e150580080f011bcabd Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 21 Sep 2013 17:51:30 +0200 Subject: Bug 707995 - @copydoc not working for const member overloads --- src/docparser.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/docparser.cpp b/src/docparser.cpp index 5259d46..17fcfef 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -6920,11 +6920,19 @@ static QCString extractCopyDocId(const char *data, uint &j, uint len) } if (!found) j++; } + if (qstrncmp(data+j," const",6)==0) + { + j+=6; + } + else if (qstrncmp(data+j," volatile",9)==0) + { + j+=9; + } e=j; QCString id(e-s+1); if (e>s) memcpy(id.data(),data+s,e-s); id.at(e-s)='\0'; - //printf("extractCopyDocId=%s input='%s'\n",id.data(),&data[s]); + //printf("extractCopyDocId='%s' input='%s'\n",id.data(),&data[s]); return id; } -- cgit v0.12