mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +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.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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue