User forums > Using Code::Blocks
Code Sense for unnamed struct/union fields
ollydbg:
--- Quote from: nightlight on October 04, 2010, 05:42:23 am ---Yes, but then the CodeSense inserts as the field name the string UnnamedUnionXXX.b into the code, rather than just b.
--- End quote ---
I mean I can put it in my to-do list and implement this feature.
nightlight:
That would be great. If it comes into the nightly builds, please let me know. I will install it and test it right away, since I use the unnamed unions quite a bit (e.g. for args to a common API entry with many different functions behind).
ollydbg:
Done, see the screenshot
But more test will be done before the patch released. :D
Loaden:
like this code, shoud be fixed too.
--- Code: ---#include <iostream>
using namespace std;
class A
{
public:
struct
{
int a;
int b;
};
int c;
};
int main()
{
A a;
a.a = 1;
a.b = 2;
a.c = 3;
cout << a.a << a.b << a.c << endl;
return 0;
}
--- End code ---
ollydbg:
--- Quote from: Loaden on October 04, 2010, 05:01:30 pm ---like this code, shoud be fixed too.
--- Code: ---#include <iostream>
using namespace std;
class A
{
public:
struct
{
int a;
int b;
};
int c;
};
int main()
{
A a;
a.a = 1;
a.b = 2;
a.c = 3;
cout << a.a << a.b << a.c << endl;
return 0;
}
--- End code ---
--- End quote ---
it's sleep time now :D, I will fix this tomorrow.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version