Community
Participate
Working Groups
CPPClassType.getNestedClasses() often returns the same nested class multiple times. Example: class aClass { class bClass; int x; }; In this case, getNestedClasses() would return a list containing two identical bindings for bClass.
Created attachment 58775 [details] proposed patch Fixes CPPClassType.getNestedClasses() A variable was not being set back to null after each iteration of a loop going through each of the declarations within the class.
It is wild how many day one bugs you're finding. Thanks!
Patch applied. Feel free to contribute JUnit tests as well ;). I have written one for this bug in CompleteParser2Tests.