File tree 3 files changed +51
-0
lines changed
3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ // bindgen-flags: --blocklist-function="Foo_ba.*"
2
+
3
+ class Foo {
4
+ public:
5
+ int foo ();
6
+ int bar ();
7
+ int baz ();
8
+ };
Original file line number Diff line number Diff line change @@ -850,6 +850,10 @@ impl Builder {
850
850
/// Hide the given function from the generated bindings. Regular expressions
851
851
/// are supported.
852
852
///
853
+ /// Methods can be blocklisted by prefixing the name of the type implementing
854
+ /// them followed by an underscore. So if `Foo` has a method `bar`, it can
855
+ /// be blocklisted as `Foo_bar`.
856
+ ///
853
857
/// To blocklist functions prefixed with "mylib" use `"mylib_.*"`.
854
858
/// For more complicated expressions check
855
859
/// [regex](https://docs.rs/regex/*/regex/) docs
@@ -929,6 +933,10 @@ impl Builder {
929
933
/// transitively refers to) appears in the generated bindings. Regular
930
934
/// expressions are supported.
931
935
///
936
+ /// Methods can be allowlisted by prefixing the name of the type
937
+ /// implementing them followed by an underscore. So if `Foo` has a method
938
+ /// `bar`, it can be allowlisted as `Foo_bar`.
939
+ ///
932
940
/// To allowlist functions prefixed with "mylib" use `"mylib_.*"`.
933
941
/// For more complicated expressions check
934
942
/// [regex](https://docs.rs/regex/*/regex/) docs
You can’t perform that action at this time.
0 commit comments