[Bug 575744] [C generator] Suggested detail code for enums is not translated to c
Bugzilla Link | 575744 |
Status | NEW |
Importance | P3 normal |
Reported | Sep 01, 2021 07:38 EDT |
Modified | Sep 01, 2021 07:38 EDT |
Description
When edition details code (using enums) the code completion suggest to use the Enum.member synthax but, the c generator does not seem to translate this to the actual enum value Enum_member.
E.g.
Enumeration MyEnum {
DEFAULT,
SPECIAL
}
'''
MyEnum value = MyEnum.SPECIAL;
'''
is generated as
MyEnum value = MyEnum.SPECIAL;
but it should be
MyEnum value = MyEnum_SPECIAL;
Additionally the needed include for the enum type is not generated.