News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Is this a doxgen parser bug?

Started by plainzw, March 13, 2013, 06:31:51 PM

Previous topic - Next topic

plainzw

Hello!the doxgen parser document is a new code complete feature, it's so terrific,but I found a problem that when I type a function more than once,sometimes the document will show reduplicate doxgen brief and params.Is this a bug of parsing doxgen document?

Regards

stefanos_

#1
If you mean the drop down menu upon auto-completion, I have the same issue and I have been struggling for hours now to get a screenshot of it under Debian wheezy :P

Since you have reported it here, it confirms more or less my issue, that displays duplicated elements and most of the times more than 4 times of the same class member.

EDIT: It's a wonderful feeling when you learn a new thing every day :) I have created a screenshot with GIMP to show exactly the issue.

Below there's an attachment with the problem.

plainzw

Hi, I've encountered the same trouble as yours for several times, and I can't find the reason,do you have any idea to resolve it?  :)
However,I was persecuted by another issue about duplicated doxgen element.
I found that the TokenTree::AppendDocumentation will add the identical document to the document map,so I changed the code:

void TokenTree::AppendDocumentation(int tokenIdx, const wxString& doc)
{
   wxString& newDoc = m_TokenDocumentationMap[tokenIdx];
   //don't add the same doc!
   if ((newDoc != _T("")) && (newDoc == doc))
       return;
   newDoc += doc;
   newDoc.Shrink();
}

and thing seems right.I don't know if it will introduce any other problem,but it is enough for me now.

Here is the attachment of duplicated doxgen element:

oBFusCATed

plainzw: Can you post a real patch and probably code sample used to reproduce the problem?

Here is some info about providing patches: http://wiki.codeblocks.org/index.php?title=Creating_a_patch_to_submit_to_BerliOS_%28Patch_Tracker%29
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

plainzw

I upload a patch,should I attach the sample code here? :)
The fact is that if you type the class member function in main,it works fine.But if you call another function or the function itself in class implementation file,it will appear duplicated doxgen elements.
Here is the sample code