We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199dfcc commit a9d4198Copy full SHA for a9d4198
CHANGELOG.md
@@ -156,6 +156,8 @@
156
## Changed
157
* Fixed name collisions when having a C `enum` and a `typedef` with the same
158
name.
159
+ * The `ParseCallbacks::generated_name_override` now receives `ItemInfo<'_>` as
160
+ argument instead of a `&str`.
161
162
## Removed
163
bindgen/callbacks.rs
@@ -32,7 +32,10 @@ pub trait ParseCallbacks: fmt::Debug {
32
33
/// This function will run for every extern variable and function. The returned value determines
34
/// the name visible in the bindings.
35
- fn generated_name_override(&self, _item_info: ItemInfo) -> Option<String> {
+ fn generated_name_override(
36
+ &self,
37
+ _item_info: ItemInfo<'_>,
38
+ ) -> Option<String> {
39
None
40
}
41
0 commit comments