News:

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

Main Menu

Symbols browser showing duplicate declarations even if using same param list

Started by indigo0086, January 26, 2008, 05:27:04 PM

Previous topic - Next topic

indigo0086

Basically when I have a class within a header/impl. file and name them they show up twice on the symbols browser.  Plus it's not entirely consistent, as some methods are left alone while others show up twice.  One has the "jump to dec." context menu option and the other has both "jump to dec., jump to impl." option. 

How do I make this not happen.

I attached a pic.

[attachment deleted by admin]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]


stahta01

I will to see if I see the problem, but I most likely will not see. I just do not use Code Completion enough and I am on windows so if it a OS issue; I would not see it.

Edit: Just saw a related problem, but the signature do not has the same formal parameters, will fix that and see if problem still exists.

Found an possible cause, my case had an embedded comment in the signature.

Can you post the the complete C++ statement or signature with the problem?

In my test case it was this

Before Patch

From file autodetectcompilers.cpp

void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& /*event*/)

From file autodetectcompilers.h

void OnDefaultClick(wxCommandEvent& event);


After patch applied.

From file autodetectcompilers.cpp

void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& )


From file autodetectcompilers.h

void OnDefaultClick(wxCommandEvent&);


Still working on exact cause and work around.
Tried a work around, but the Code Completion plugin did not like it. I am guessing it is an error in parsing C++ Code inside Code Completion plugin. But, I have no way to know/test/confirm/fix it assuming it is a parsing error.


Old Comments follow below here.


My management window title is just "Symbols" under Windows XP.
What is your OS? In case someone else decide to test.

Can you upload a small sample project with the issue?
Or, upload an link to an open source project with the issue?

Tim S

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]