Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document and test allowlisting and blocklisting methods (#2344)
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
bindgen-tests/tests/expectations/tests/blocklist-methods.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// bindgen-flags: --blocklist-function="Foo_ba.*" | ||
|
||
class Foo { | ||
public: | ||
int foo(); | ||
int bar(); | ||
int baz(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters