Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2017-02-08 20:41:52 +0000
committerSergey Prigogin2017-02-08 20:46:40 +0000
commit5e793c9b43db33e8eef92ba49b26c3936a73ecee (patch)
treec3c4ab384df0e421ced0b24c926a5306e0b991ec /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom
parent95e05f485d8a44f14864ba7492f9dfa2a6494b4f (diff)
downloadorg.eclipse.cdt-5e793c9b43db33e8eef92ba49b26c3936a73ecee.tar.gz
org.eclipse.cdt-5e793c9b43db33e8eef92ba49b26c3936a73ecee.tar.xz
org.eclipse.cdt-5e793c9b43db33e8eef92ba49b26c3936a73ecee.zip
Revert "Bug 399147 - Make 'Find Reference' find using-declarations"
The change is invalid since a PDOMName can participate in only one binding at a time through its BINDING_PREV_OFFSET/ BINDING_PREV_OFFSET pointers. This reverts commit 2706699543e0a42eaa4efddb52b3a54635f8ae30. Change-Id: I1a4dd7b189b85a0d9c1cca2660d33ab7351a025c
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
index 86812964a88..d6fa4511b9c 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
@@ -18,8 +18,6 @@ import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTPreprocessorIncludeStatement;
-import org.eclipse.cdt.core.dom.ast.IBinding;
-import org.eclipse.cdt.core.dom.ast.cpp.ICPPUsingDeclaration;
import org.eclipse.cdt.core.index.IIndexFile;
import org.eclipse.cdt.core.index.IIndexName;
import org.eclipse.cdt.core.index.IndexLocationFactory;
@@ -79,17 +77,6 @@ public final class PDOMName implements IIndexFragmentName, IASTFileLocation {
break;
case IS_DECLARATION:
binding.addDeclaration(this);
-
- // The name of a using-declaration is, in addition to the declaration of
- // the using-declaration binding, a reference to its delegate bindings.
- if (binding instanceof ICPPUsingDeclaration) {
- for (IBinding delegate : ((ICPPUsingDeclaration) binding).getDelegates()) {
- if (delegate instanceof PDOMBinding) {
- ((PDOMBinding) delegate).addReference(this);
- }
- }
- }
-
break;
case IS_REFERENCE:
binding.addReference(this);

Back to the top