1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

bug - 144096. Don't omit implicit methods from index if they came off a name that wasn't a reference

This commit is contained in:
Andrew Niefer 2006-06-02 15:11:29 +00:00
parent 8df1d9249d
commit 49790ba344

View file

@ -137,8 +137,11 @@ public class PDOMCPPLinkage extends PDOMLinkage {
pdomBinding = new PDOMCPPVariable(pdom, parent, name);
} else if (binding instanceof CPPMethod && parent instanceof PDOMCPPClassType) {
pdomBinding = new PDOMCPPMethod(pdom, (PDOMCPPClassType)parent, name);
} else if (binding instanceof CPPImplicitMethod) {
// skip these for now
} else if (binding instanceof CPPImplicitMethod && parent instanceof PDOMCPPClassType) {
if(!name.isReference()) {
//because we got the implicit method off of an IASTName that is not a reference, it is no longer completly implicit and it should be treated as a normal method.
pdomBinding = new PDOMCPPMethod(pdom, (PDOMCPPClassType)parent, name);
}
} else if (binding instanceof CPPFunction) {
pdomBinding = new PDOMCPPFunction(pdom, parent, name);
} else if (binding instanceof CPPClassType) {