Skip to content

"--blocklist-file" option doesn't work as advertized #2546

Closed Answered by pvdrz
mathieupoirier asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Christian,

Hi Mathieu! 👋

First, just to make sure we are looking at the same thing, can you point out where in the documentation it is mentionned that blocklist-* is non transitive?

It is not stated explicitly. The documentation for allowlist_file mentions its transitive property and the blocklist_file does not. One could infer that the latter won't be transitive but I agree, it should be explicitly stated.

Second, I experimented with --allowlist-file using a very simple setup made of 3 files: file1.h, file2.h and file_list.h.

Scenario 1: $ bindgen file1.h --allowlist-file=file1.h -o bindings.rs Works as expected, i.e I only see a single definition in bindings.rs.

Scenario 2: $ b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pvdrz
Comment options

Answer selected by pvdrz
@mathieupoirier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants