User forums > Using Code::Blocks
Variable tooltip confusion
Commaster:
First of all, sorry for a non-informative title...
(Potentially important details: r10507, Ubuntu x64, wx2.8.12, wx Project)
Let's say we have somewhere early on in the .cpp file:
--- Code: ---BetterwxObject* Layer = NULL;
--- End code ---
If we hover over the "Layer", we get the proper tooltip
--- Code: ---BetterwxObject* Layer
--- End code ---
So far so good. And for many more occurences of this "Layer" variable.
Until, several screens lower, we stumble upon this:
--- Code: ---if (!SomeBoolean && Layer)
--- End code ---
After this line comes into view (and maybe hoverting over the Layer in this line), the Layer tooltip permanently (until restart) gets ruined into:
--- Code: ---! SomeBoolean&& Layer
--- End code ---
oBFusCATed:
Can you post a minimal code sample that demonstrates the problem?
Commaster:
Just used the template for a console project and added the mentioned variables.
--- Code: ---#include <iostream>
using namespace std;
string* Layer = NULL;
int main()
{
bool SomeBoolean;
cout << "Hello world!" << endl;
if (!SomeBoolean && Layer)
{
cout << "Important" << endl;
}
return 0;
}
--- End code ---
After loading the project, hover over the Layer declaration to see "string* Layer".
Then hover over the occurence inside the if and ruin the tooltip.
P.S. tried to reproduce this on 13.12 on windows, couldn't.
ollydbg:
Thanks for the report, I can confirm this bug in the trunk, and can you wrote a bug report Code::Blocks / Tickets, and mention the link here? So that this bug won't lost in the forum.
Thank you!
Commaster:
#226 -> https://sourceforge.net/p/codeblocks/tickets/226/
Might have been a little too conservative in the description.
Navigation
[0] Message Index
[#] Next page
Go to full version