Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: plainzw on March 13, 2013, 06:31:51 pm

Title: Is this a doxgen parser bug?
Post by: plainzw on March 13, 2013, 06:31:51 pm
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
Title: Re: Is this a doxgen parser bug?
Post by: stefanos_ on April 07, 2013, 10:53:07 pm
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.
Title: Re: Is this a doxgen parser bug?
Post by: plainzw on April 20, 2013, 06:45:11 pm
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:
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:
Title: Re: Is this a doxgen parser bug?
Post by: oBFusCATed on April 20, 2013, 07:40:49 pm
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
Title: Re: Is this a doxgen parser bug?
Post by: plainzw on April 21, 2013, 04:53:49 am
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