Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-02-22 12:25:38 +0000
committerMarkus Schorn2008-02-22 12:25:38 +0000
commit270e8513e64e2f839ff7f3796af8b3ed7f0610a4 (patch)
treeb827d5e35a0629198949adb4cf2ef7222019e87e /core/org.eclipse.cdt.core/model
parentb803bae59f466cd6b2fd3f7e937ab4324a5044d0 (diff)
downloadorg.eclipse.cdt-270e8513e64e2f839ff7f3796af8b3ed7f0610a4.tar.gz
org.eclipse.cdt-270e8513e64e2f839ff7f3796af8b3ed7f0610a4.tar.xz
org.eclipse.cdt-270e8513e64e2f839ff7f3796af8b3ed7f0610a4.zip
Bindings for names resolved via using declarations, bug 219424.
Diffstat (limited to 'core/org.eclipse.cdt.core/model')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java
index bd095e552ae..7536f6f33bc 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java
@@ -27,7 +27,6 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPBlockScope;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassScope;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplate;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
-import org.eclipse.cdt.core.dom.ast.cpp.ICPPDelegate;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceScope;
@@ -69,13 +68,7 @@ public class CElementHandleFactory {
public static ICElementHandle internalCreate(ITranslationUnit tu, IBinding binding, boolean definition,
IRegion region, long timestamp) throws CoreException, DOMException {
- if (binding instanceof ICPPDelegate) {
- ICPPDelegate delegate= (ICPPDelegate) binding;
- if (delegate.getDelegateType() == ICPPDelegate.USING_DECLARATION) {
- binding= delegate.getBinding();
- }
- }
-
+
ICElement parentElement= create(tu, binding.getScope());
if (parentElement == null) {
return null;

Back to the top