Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 3.0.0, Qt Creator 4.6.0-beta1
Description
I've recently noticed two problems with typedef-ed struct, such like this one:
typedef-ed struct
typedef struct
{
int length;
} Square;
1. The "Open Type Hierarchy" doesn't work.
2. When we have two or more typedef-ed struct that have members with the same name, the "Find Usages" will not search contextually. Meaning it will find all occurrences in all struct. For example with those structs if we search usages of length it will give results of both structs.
typedef-ed struct
typedef struct { int length; } Square; typedef struct { int length; } Rectangle;