diff options
author | Marcel Hlopko <hlopko@google.com> | 2021-02-11 08:58:46 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-18 17:25:13 +0100 |
commit | 0e25962c4e69aef647e7275fa7bc7545dbb8cd0b (patch) | |
tree | f51e49624d79a707069bbfdeb0f15b78219cec94 /tests/headers/blocklist-function.hpp | |
parent | e59aa9218b0e862cbaed319582bf0b692dfacde2 (diff) |
Rename whitelist -> allowlist and blacklist -> blocklist
For the commandline arguments I added undocumented aliases to old flags,
to stay backwards compatible.
Diffstat (limited to 'tests/headers/blocklist-function.hpp')
-rw-r--r-- | tests/headers/blocklist-function.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/headers/blocklist-function.hpp b/tests/headers/blocklist-function.hpp new file mode 100644 index 00000000..d7c8bb35 --- /dev/null +++ b/tests/headers/blocklist-function.hpp @@ -0,0 +1,16 @@ +// bindgen-flags: --blocklist-function "ExternFunction" --blocklist-function "foo::NamespacedFunction" --blocklist-function "C_ClassMethod" --enable-cxx-namespaces + +extern "C" void ExternFunction(); + +namespace foo { + void NamespacedFunction(); +} + +namespace bar { + void NamespacedFunction(); +} + +class C { +public: + void ClassMethod(); +}; |