Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Another completion oddity
ollydbg:
I can confirm this issue.
The reason is that when we treat a "typedef" as a derived class, and the "struct" declaration gives no name, so, Data_t is a derived class from the "unnamed structure".
blueshake:
ollydbg's explanation is right . :D
mariocup:
Sound plausible :D
daniloz:
OK, not sure if I should continue on this thread or begin a new one (maybe one of the moderators can give me a hint :wink: ). Anyway, here I go:
Again, with the following code
--- Code: ---int aaaa;
typedef struct tagN {
int a;
double b;
int c;
} Tstruct;
Tstruct tttt;
tttt.b
void main()
{
Tstruct bbbbb;
int cccccc;
tttt
bbbbb
}
--- End code ---
If I right-click on "bbbbb" and choose "Find declaration", I receive the following warning: "Not found: bbbbb".
If I do the same on "tttt" or "Tstruct", it works ok though. (just giving you all information I have).
Moreover, the completion is not working in "bbbbb" if I dont have a ";" after "tttt.b", as in the above example.
BTW, I'm using r5729 (branch codecompletion_refactoring) with the patch given by blueshake in
--- Quote from: blueshake on August 13, 2009, 10:35:24 am ---you still need to apply this patch.
--- End quote ---
Thank you all again...
oBFusCATed:
daniloz: C++ is hard to parse even when the code is correct, parsing malformed code is massive(close to impossible) task
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version