Author Topic: Symbols browser showing duplicate declarations even if using same param list  (Read 3896 times)

Offline indigo0086

  • Almost regular
  • **
  • Posts: 150
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]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
What version of Code::Blocks are you using? RC2 or SVN number

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline indigo0086

  • Almost regular
  • **
  • Posts: 150
The jan 22 nightly.

svn 4837

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
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

« Last Edit: January 26, 2008, 11:53:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org