mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Fix for 179492: CModelBuilder2 does not set ICElementKind correctly
This commit is contained in:
parent
d7d46ed8c4
commit
768104f0e5
1 changed files with 6 additions and 1 deletions
|
@ -629,8 +629,13 @@ public class CModelBuilder2 implements IContributedModelBuilder {
|
||||||
kind= (isTemplate) ? ICElement.C_TEMPLATE_CLASS_DECLARATION : ICElement.C_CLASS_DECLARATION;
|
kind= (isTemplate) ? ICElement.C_TEMPLATE_CLASS_DECLARATION : ICElement.C_CLASS_DECLARATION;
|
||||||
type= Keywords.CLASS;
|
type= Keywords.CLASS;
|
||||||
break;
|
break;
|
||||||
|
case IASTElaboratedTypeSpecifier.k_enum:
|
||||||
|
// do we need a C_ENUM_DECLARATION?
|
||||||
|
kind= ICElement.C_CLASS_DECLARATION;
|
||||||
|
type= Keywords.ENUM;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
kind= ICElement.C_CLASS;
|
kind= ICElement.C_CLASS_DECLARATION;
|
||||||
type= ""; //$NON-NLS-1$
|
type= ""; //$NON-NLS-1$
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue