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

Pass the kind of item to ParseCallbacks::item_name #2736

Open
kupiakos opened this issue Jan 26, 2024 · 1 comment
Open

Pass the kind of item to ParseCallbacks::item_name #2736

kupiakos opened this issue Jan 26, 2024 · 1 comment

Comments

@kupiakos
Copy link

Input C/C++ Header

enum long_prefix_to_remove_foo {
  BAR = 0
};

int long_prefix_to_remove_bar();

There is no way to implement ParseCallbacks::item_name that can follow different naming logic for these two items.

I propose that item_name be refactored to look more like generated_name_override, which passes in an info struct instead of solely a name.

Cc @vsukhoml

@emilio
Copy link
Contributor

emilio commented Feb 4, 2024

Seems sensible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants