From 49790ba344e21200ec6c2aab4f2be50c766b069c Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Fri, 2 Jun 2006 15:11:29 +0000 Subject: [PATCH] bug - 144096. Don't omit implicit methods from index if they came off a name that wasn't a reference --- .../cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java index 6828088d2a1..94e3e7d5195 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage.java @@ -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) {