User forums > Using Code::Blocks
Symbols browser showing duplicate declarations even if using same param list
(1/1)
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:
What version of Code::Blocks are you using? RC2 or SVN number
Tim S
indigo0086:
The jan 22 nightly.
svn 4837
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
--- Code: ---void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& /*event*/)
--- End code ---
From file autodetectcompilers.h
--- Code: ---void OnDefaultClick(wxCommandEvent& event);
--- End code ---
After patch applied.
From file autodetectcompilers.cpp
--- Code: ---void AutoDetectCompilers::OnDefaultClick(wxCommandEvent& )
--- End code ---
From file autodetectcompilers.h
--- Code: ---void OnDefaultClick(wxCommandEvent&);
--- End code ---
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
Navigation
[0] Message Index
Go to full version