Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-11-28 01:37:12 +0000
committerNathan Ridge2018-12-05 18:44:30 +0000
commit3ee513f3240f9d542ef9524b4410946e5b1e14b0 (patch)
tree853814753d712a5a12d111d3ba601917713c794a
parentefb9ddbb63d6a01c0217a646e88943e916ce99b9 (diff)
downloadorg.eclipse.cdt-3ee513f3240f9d542ef9524b4410946e5b1e14b0.tar.gz
org.eclipse.cdt-3ee513f3240f9d542ef9524b4410946e5b1e14b0.tar.xz
org.eclipse.cdt-3ee513f3240f9d542ef9524b4410946e5b1e14b0.zip
Bug 541584 - Support alias templates in Open Element
-rw-r--r--core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/IndexModelUtil.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/IndexModelUtil.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/IndexModelUtil.java
index 837cc1117ea..ab0cd423037 100644
--- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/IndexModelUtil.java
+++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/IndexModelUtil.java
@@ -30,6 +30,7 @@ import org.eclipse.cdt.core.dom.ast.IParameter;
import org.eclipse.cdt.core.dom.ast.IScope;
import org.eclipse.cdt.core.dom.ast.ITypedef;
import org.eclipse.cdt.core.dom.ast.IVariable;
+import org.eclipse.cdt.core.dom.ast.cpp.ICPPAliasTemplate;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceAlias;
@@ -75,7 +76,7 @@ public class IndexModelUtil {
return true;
break;
case ICElement.C_TYPEDEF:
- if (binding instanceof ITypedef)
+ if (binding instanceof ITypedef || binding instanceof ICPPAliasTemplate)
return true;
break;
case ICElement.C_FUNCTION:
@@ -124,7 +125,7 @@ public class IndexModelUtil {
if (binding instanceof IEnumeration) {
elementType = ICElement.C_ENUMERATION;
}
- if (binding instanceof ITypedef) {
+ if (binding instanceof ITypedef || binding instanceof ICPPAliasTemplate) {
elementType = ICElement.C_TYPEDEF;
}
if (binding instanceof IFunction) {

Back to the top