This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Consider the following construct typedef enum { None = 0x0, In = 0x1, Inout = 0x2, } Kind; Navigator does not show "Kind" With typedef struct it does
Created attachment 135089 [details] Navigator content
The statement wasn't quite correct. It shows both unnamed enum and typedef, and both are expandable. This is inconsistent with the way "typedef struct" is processed: for the later only one node is shown (and sure it has a name) Here is code example that corresponds to the attached image typedef enum { None = 0x0, In = 0x1, Inout = 0x2, } Kind; typedef struct { int x; int y; } Point;
Debugger shows that for a union getEnclosingTypedefs() called from CppDeclarationNode.nodeFactory(CppDeclarationNode.java:505) return empty collection, while for struct it returns non empty one.
Fixed during fixing bug 243510