Skip to content

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

New issue

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

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

Already on GitHub? # to your account

Open
kupiakos opened this issue Jan 26, 2024 · 1 comment · May be fixed by #3129
Open

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

kupiakos opened this issue Jan 26, 2024 · 1 comment · May be fixed by #3129

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.

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

Successfully merging a pull request may close this issue.

2 participants