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

Add option to remove type aliases #2295

Closed
wants to merge 2 commits into from

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Oct 4, 2022

This new option allows to remove type aliases that match a regular expression.

Fixes: #2256

Note: This differs from --opaque-type by being just a cosmetic option in the sense that the lhs of aliases are replaced everywhere by their rhs, no binary blobs are emitted to replace types anywhere. It is not possible to remove a non-alias type item using this option either. This option works by removing type aliases from the resulting bindings instead of avoid creating them in the first place.

@pvdrz pvdrz requested review from kulp, amanjeev and emilio October 4, 2022 19:50
@bors-servo
Copy link

☔ The latest upstream changes (presumably #2284) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-servo
Copy link

☔ The latest upstream changes (presumably #2299) made this pull request unmergeable. Please resolve the merge conflicts.

@pvdrz
Copy link
Contributor Author

pvdrz commented Oct 11, 2022

Closing as this might need more work to support namespaces

@pvdrz pvdrz closed this Oct 11, 2022
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

Successfully merging this pull request may close these issues.

Bindings for headers using rust-style integer aliases are awkward
2 participants