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
There is an issue to use c2rust for tranlating inline functions, but if you check the output of bindgen, you can spot some patterns that c2rust also normally works with, so they created an amazing refactoring tool. And it can be scripted with Lua, so some bindgen-specific automation can be easily added without much changes from c2rust side - see their manual for refactoring tool. Sorry if idea is irrelevant, just thought it might be handy.
I think it's interesting, but what kind of refactoring do you want to apply to the generated bindings?
In general bindgen doesn't produce a lot of stuff other than declarations, typedefs, etc, so it's not clear to me what you can or cannot cleanup from them...
I'm not sure refactoring is really needed for the auto-generated bindings. If there's particularly ugly codegen the generator could be fixed, but I'm not sure that's needed. When I've used bindgen I generally never look at the generated code, instead using the C header as API docs.
That said, I'd be happy to look into any particular refactoring that could be useful, if there are any.
There is an issue to use c2rust for tranlating inline functions, but if you check the output of bindgen, you can spot some patterns that c2rust also normally works with, so they created an amazing refactoring tool. And it can be scripted with Lua, so some bindgen-specific automation can be easily added without much changes from c2rust side - see their manual for refactoring tool. Sorry if idea is irrelevant, just thought it might be handy.
cc @thedataking @rinon @ahomescu @TheDan64
The text was updated successfully, but these errors were encountered: