As of the latest nightly build of Codeblocks (6-21-2016) on Windows 7 x64, if a structure is declared and initialized on the same line, such as the following:
struct mystruct{ unsigned myvar; }; int main(void) { struct mystruct myinstance = {1}; }
Right clicking on any reference to "myinstance" (even on the line where it is defined) and asking CodeBlocks to find the declaration for that structure results in a "Not found" result. If the initialization is taken out and left as "struct mystruct;", then C::B is immediately able to find the declaration.
I'm not able to reproduce this in the 9-25-2016 nightly, it might be fixed.
Strange, if I remember correct, I haven't fixed this issue, but maybe this issue is fixed by other cc commits.
I tried a couple of offending variables in my code side by side with the previous nightly and the behavior certainly seems to have changed for the better. I won't look a gift commit in the mouth!
See ticket 33 for potential fix.
Duplicate of [#33]
Related
Tickets: #33