First of all, thanks for a great plugin!
I have stumbled upon a very annoying problem, that forces me to disable auto completion.
The problem I have is that auto completion does not seem to understand anonymous unions.
The library i’m trying to use has a struct that contains a type and a union with type dependent data.
The problem is that the type will always be auto completed (like there was no other members in the struct).
This makes it impossible to write code to access the members within the union.
I supply a minimal code example that can reproduce the problem.
struct MyStruct
{
int type;
union
{
int value_int;
double value_double;
};
};
int main(int argc, char const *argv])
{
struct MyStruct my_struct;
// try to use my_struct here with autocompletion enabled.
// type is always auto completed and it is impossible
// to write code to access value_int or value_double with auto complete enabled.
return 0;
}