Skip to content

strip common prefix on enum variant name #3357

@NickeZ

Description

@NickeZ

Hi,

I'm using the CLI tool to avoid wasting CI minutes on recompiling bindgen, so I'm looking for a CLI solution.

I've read about the ParseCallbacks::enum_variant_name solution, but I'm not sure how to use it. For starters it seems to not be available in the CLI tool, but furthermore I need all enum variants in the same callback to be able to find the prefix, right?

I'm generating bindings for a C library that has hundreds of enums, so manually listing them isn't a great solution.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions