Community
Participate
Working Groups
Created attachment 237178 [details] Project demonstrating indexer failure to resolve struct member It appears that the CDT indexer does not obey the include-tree order when resolving members for structs sharing the same name, included in separate source files. Consider two structs, declared in separate headers, that share the same name but have different members. Two separate source files each include one of these files, respectively, and reference the struct members. This will build fine with gcc, but the CDT indexer will only resolve one of the struct member references. I have attached an example project that demonstrates this issue. Also, I am aware that this is not very good coding practice, but I am stuck with dealing with this sort of implementation in a library I am using. It is not feasible to refactor the library source.
Looks similar to bug 337583 but Markus's comment makes it sounds hard to fix for classes/structs.