mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 541584 - Support alias templates in Open Element
Change-Id: I43565b165bd98112ef63e01bc2576a93855f8891
This commit is contained in:
parent
efb9ddbb63
commit
3ee513f324
1 changed files with 3 additions and 2 deletions
|
@ -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.IScope;
|
||||||
import org.eclipse.cdt.core.dom.ast.ITypedef;
|
import org.eclipse.cdt.core.dom.ast.ITypedef;
|
||||||
import org.eclipse.cdt.core.dom.ast.IVariable;
|
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.ICPPClassType;
|
||||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace;
|
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace;
|
||||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceAlias;
|
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceAlias;
|
||||||
|
@ -75,7 +76,7 @@ public class IndexModelUtil {
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case ICElement.C_TYPEDEF:
|
case ICElement.C_TYPEDEF:
|
||||||
if (binding instanceof ITypedef)
|
if (binding instanceof ITypedef || binding instanceof ICPPAliasTemplate)
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case ICElement.C_FUNCTION:
|
case ICElement.C_FUNCTION:
|
||||||
|
@ -124,7 +125,7 @@ public class IndexModelUtil {
|
||||||
if (binding instanceof IEnumeration) {
|
if (binding instanceof IEnumeration) {
|
||||||
elementType = ICElement.C_ENUMERATION;
|
elementType = ICElement.C_ENUMERATION;
|
||||||
}
|
}
|
||||||
if (binding instanceof ITypedef) {
|
if (binding instanceof ITypedef || binding instanceof ICPPAliasTemplate) {
|
||||||
elementType = ICElement.C_TYPEDEF;
|
elementType = ICElement.C_TYPEDEF;
|
||||||
}
|
}
|
||||||
if (binding instanceof IFunction) {
|
if (binding instanceof IFunction) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue