Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: indigo0086 on January 26, 2008, 05:27:04 pm

Title: Symbols browser showing duplicate declarations even if using same param list
Post by: indigo0086 on January 26, 2008, 05:27:04 pm
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]
Title: Re: Symbols browser showing duplicate declarations even if using same param list
Post by: stahta01 on January 26, 2008, 07:33:24 pm
What version of Code::Blocks are you using? RC2 or SVN number

Tim S
Title: Re: Symbols browser showing duplicate declarations even if using same param list
Post by: indigo0086 on January 26, 2008, 08:21:29 pm
The jan 22 nightly.

svn 4837
Title: Re: Symbols browser showing duplicate declarations even if using same param list
Post by: stahta01 on January 26, 2008, 11:25:41 pm
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
Code
void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& /*event*/)
From file autodetectcompilers.h
Code
void OnDefaultClick(wxCommandEvent& event);

After patch applied.

From file autodetectcompilers.cpp
Code
void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& )

From file autodetectcompilers.h
Code
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