Community
Participate
Working Groups
Created attachment 283942 [details] Type Hierarchy with duplicates Type hierarchy for C++ shows the same classes multiple times. The attached snapshot demonstrates the issue. The snapshot was taken for Eclipse Oxygen, 4.7.3a. However, the issue happens in other Eclipse versions, for example, in Eclipse Neon.3, 4.6.3, on Solaris 10. I'm not sure regarding actual CDT component responsible for this. I selected cdt-core only because the component is mandatory.
(In reply to Gennady Gozman from comment #0) I suspect that these are class templates, right?
No, this is not related to template classes. Actually, I think this is related to out of memory exceptions thrown during C++ parsing/indexing. I'm struggling with the problem for years without a significant success. One hierarchy of our classes produces the exceptions consistently when finding overrides of pure virtual functions. This looks like an endless recursion. I've tried to debug this in Eclipse and I found out that there are multiple records of the problematic class(es) in PDOM. However, I was not able to understand why. I did not open a PR for the out of memory exceptions because there are already one or two and they are not solved.
Created attachment 286175 [details] Duplicate entries example snapshot. Note, that method getIPAddr() causes an out of memory exception during parsing of another file, where it is called. I found this by commenting out the code and the uncommenting it line by line until the exception. I'm pretty sure that this is related to the multiple entries of the classes in PDOM.
I can try to send my PDOM, if necessary.
Bug 576970 suggests that the problem may have spread to JDT.
(In reply to Ed Willink from comment #5) > Bug 576970 suggests that the problem may have spread to JDT. Both type hierarchies have nothing in common except view name. So it is unrelated for sure.