You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried solving this by mangling too names that look like they would be the result of being mangled. So type_ would be mangled to type__. I don't see how to solve this checking duplicates, since duplicates only matter inside scopes (duplicates in function arguments, for example).
A consequence of doing this is that names that don't need to be mangled because they are not duplicates would be changed anyway. Another consequence is that parts of the bitfield special handling wouldn't be needed now.
The bitfield-method-same-name.hpp
I think the change in the tests are fine as the _bindgen_bitfield suffix is added when there's a name collision between a method that already exists in the headers and the setter method that's being generated by `bindgen.
Header to reproduce:
The resulting code will be:
Which is of course, invalid. It would probably make sense to at least give an error rather than generating invalid code here.
The text was updated successfully, but these errors were encountered: