-
Notifications
You must be signed in to change notification settings - Fork 747
Add a Builder::blacklist_type
method; deprecate Builder::hide_type
#984
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
Comments
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
Hi! I'd like to try implementing this. @highfive: assign me |
Hey @alexeyzab! Thanks for your interest in working on this issue. It's now assigned to you! |
This deprecates `Builder::hide_type`. Related to rust-lang#984. - [x] Add Builder::blacklist_type, that does the same thing as hide_type - [x] Mark Builder::hide_type as #[deprecated = "Use blacklist_type instead"] - [x] Make hide_type delegate to blacklist_type - [x] Rename the BindgenOptions::hidden_types member to BindgenOptions::blacklisted_types - [x] Rename ir::context::BindgenContext::hidden_by_name to blacklisted_by_name - [x] Rename ir::item::Item::is_hidden to is_blacklisted
Add a `Builder::blacklist_type` This deprecates `Builder::hide_type`. Related to #984. - [x] Add Builder::blacklist_type, that does the same thing as hide_type - [x] Mark Builder::hide_type as #[deprecated = "Use blacklist_type instead"] - [x] Make hide_type delegate to blacklist_type - [x] Rename the BindgenOptions::hidden_types member to BindgenOptions::blacklisted_types - [x] Rename ir::context::BindgenContext::hidden_by_name to blacklisted_by_name - [x] Rename ir::item::Item::is_hidden to is_blacklisted r? @fitzgen
fixed in #991 |
Thanks for the reminder, @tamird ! @alexeyzab, fwiw, if you add "Fixes #12345" in the git commit message, github will automatically close the issue once the relevant PR is merged. |
Uh oh!
There was an error while loading. Please reload this page.
Currrently, the
--blacklist-type
flag's correspondingBuilder
method isBuilder::hide_type
.The naming difference is unnecessary, inconsistent, makes it harder for users to switch from CLI to builder or vice versa, and adds one more thing to remember/know about the code base when developers are reading about hidden or blacklisted things.
We should:
Builder::blacklist_type
, that does the same thing ashide_type
Builder::hide_type
as#[deprecated = "Use blacklist_type instead"]
hide_type
delegate toblacklist_type
BindgenOptions::hidden_types
member toBindgenOptions::blacklisted_types
ir::context::BindgenContext::hidden_by_name
toblacklisted_by_name
ir::item::Item::is_hidden
tois_blacklisted
The text was updated successfully, but these errors were encountered: