I always declare my structures like this:
typedef struct Thing {
int var;
} Thing;
When I want to go to its declaration, I right-click and choose "Find declaration of: 'Thing' ".
But then an intermediate window pop telling me there are multiples matches:
and
- 1. Why does it print that 'class' word which don't exist in C ?
- 2. Why the second line is "typedef Thing Thing" ? Didn't I wrote a "typedef struct Thing Thing ?"
And finally, those multiple matches are obviously redundant in my case and that popping window bothers me.
Is there something that can be made (both in my coding or in CodeBlocks) to prevent it ?
Edit: Win7 64 bits, CB 12.11
So try:typedef struct {
int var;
} Thing;
I meant that in my utilization of a typedef just to not having to write the struct keyword everywhere, the pop-up window is totally useless and annoying.
Maybe so, but it's expecting a bit too much for C::B to know that. For example, if your code was:
struct Thing {
int val;
};
// 1000 lines of code here
typedef struct Thing Thing;
then presumably you would want to have both names available.