Skip to content

Enum key stripping #461

Open
Open
@dovdiienko-el3

Description

@dovdiienko-el3

Could you add an option to strip the prefix from the enumeration keys. For example given following C code:

enum abc_some_enum {
  abc_some_enum_key1,
  abc_some_enum_key2,
  abc_some_enum_key3,
};

The expected C# output is following:

enum abc_some_enum {
  key1,
  key2,
  key3,
};

My best guess is that generator should cut maximum common prefix from the enum key name.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions