Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamelCase style union tag. #890

Closed
cathaysia opened this issue Oct 7, 2023 · 0 comments
Closed

CamelCase style union tag. #890

cathaysia opened this issue Oct 7, 2023 · 0 comments

Comments

@cathaysia
Copy link

cbindgen will generate SnakeCase style tag for union currently, if it's possible generate CamelCase tag?

such as if we have:

typedef enum Foo_Tag {
  A,
} Foo_Tag;

typedef struct Foo {
  Foo_Tag tag;
  union {
    struct {
      float a[20];
    };
  };
} Foo;

void root(struct Foo a);

I hope it can be:

typedef enum FooTag {
  A,
} FooTag;

typedef struct Foo {
  FooTag tag;
  union {
    struct {
      float a[20];
    };
  };
} Foo;

void root(struct Foo a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant