Fast-DDS-Gen
Fast-DDS-Gen copied to clipboard
[21380] Support setting value to an enumeration literal using annotation @value
Description
This PR adds support for settting a value to an enumeration literal. For example:
enum MyEnum
{
@value(-3)
ENUM_VALUE1,
@value(0)
ENUM_VALUE2
};
Depends on:
- eprosima/dds-types-test#36
- eprosima/fast-dds#5109
Contributor Checklist
- [x] Commit messages follow the project guidelines.
- [x] Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
- [ ] New feature has been documented/Current behavior is correctly described in the documentation.
- N/A Applicable backports have been included in the description.
Reviewer Checklist
- [ ] The PR has a milestone assigned.
- [ ] The title and description correctly express the PR's purpose.
- [ ] Check contributor checklist is correct.
- [ ] Check CI results: changes do not issue any warning.
- [ ] Check CI results: failing tests are unrelated with the changes.