Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-01-31 14:50:16 +0000
committerAnton Leherbauer2008-01-31 14:50:16 +0000
commit952046381e98720cfb40bbd0542cfbfee025dee2 (patch)
treebce690b4c3da04e36dd6cabef666a7165097db7c /core/org.eclipse.cdt.core/parser
parent645d096b609ed8f39b01146ee5b31e238c93e7de (diff)
downloadorg.eclipse.cdt-952046381e98720cfb40bbd0542cfbfee025dee2.tar.gz
org.eclipse.cdt-952046381e98720cfb40bbd0542cfbfee025dee2.tar.xz
org.eclipse.cdt-952046381e98720cfb40bbd0542cfbfee025dee2.zip
Fix mark occurrences for template specializations
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java
index 736bcde0c9d..be4f31704a4 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java
@@ -119,7 +119,6 @@ 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.ICPPConstructor;
-import org.eclipse.cdt.core.dom.ast.cpp.ICPPDeferredTemplateInstance;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPDelegate;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunctionScope;
@@ -1296,8 +1295,8 @@ public class CPPVisitor {
public CollectReferencesAction( IBinding binding ){
- if (binding instanceof ICPPDeferredTemplateInstance) {
- binding= ((ICPPDeferredTemplateInstance) binding).getSpecializedBinding();
+ if (binding instanceof ICPPSpecialization) {
+ binding= ((ICPPSpecialization) binding).getSpecializedBinding();
}
this.binding = binding;
this.refs = new IASTName[ DEFAULT_LIST_SIZE ];
@@ -1398,8 +1397,8 @@ public class CPPVisitor {
candidate = null;
else
candidate = bs[ ++n ];
- } else if (potential instanceof ICPPDeferredTemplateInstance) {
- candidate= ((ICPPDeferredTemplateInstance) potential).getSpecializedBinding();
+ } else if (potential instanceof ICPPSpecialization) {
+ candidate= ((ICPPSpecialization) potential).getSpecializedBinding();
} else {
candidate = potential;
}

Back to the top