Fast-DDS-Gen icon indicating copy to clipboard operation
Fast-DDS-Gen copied to clipboard

[21380] Support setting value to an enumeration literal using annotation @value

Open richiware opened this issue 7 months ago • 0 comments

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.

richiware avatar Jul 17 '24 05:07 richiware