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

feat: add blocklist_var #2730

Closed
d5ng4i opened this issue Jan 23, 2024 · 1 comment
Closed

feat: add blocklist_var #2730

d5ng4i opened this issue Jan 23, 2024 · 1 comment

Comments

@d5ng4i
Copy link
Contributor

d5ng4i commented Jan 23, 2024

Input C/C++ Header

extern int should_be_blocked;

Bindgen Invocation

bindgen::Builder::default()
    .header("input.h")
    .blocklist_var("should_be_blocked")
    .generate()
    .unwrap()

or

$ bindgen input.h --blocklist-var should_be_blocked

Actual Results

There's no method to blocklist a variable.

Expected Results

blocklist_var is the only missing allowlist_* mirror method. I don't yet see any use besides having parity with allowlist. I have a patch ready, if we decide to implement this.

@emilio
Copy link
Contributor

emilio commented Jan 31, 2024

Fixed by #2731

@emilio emilio closed this as completed Jan 31, 2024
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

2 participants