-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: sort all items emitted based on their item type #1743
Labels
Comments
I think that'd be reasonable... I think our current ordering is the order in which we parse the C / C++ |
amanjeev
added a commit
to ferrous-systems/rust-bindgen
that referenced
this issue
Aug 11, 2022
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "ypes are declared first, then all structs, then all consts, then all function signatures, etc. [1] rust-lang#1743
amanjeev
added a commit
to ferrous-systems/rust-bindgen
that referenced
this issue
Aug 11, 2022
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "ypes are declared first, then all structs, then all consts, then all function signatures, etc. [1] rust-lang#1743
emilio
pushed a commit
that referenced
this issue
Aug 24, 2022
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "types are declared first, then all structs, then all consts, then all function signatures, etc. [1] #1743 Signed-off-by: Amanjeev Sethi <[email protected]> Co-authored-by: Christian Poveda <[email protected]> Co-authored-by: Darren Kulp <[email protected]>
aatifsyed
pushed a commit
to aatifsyed/rust-bindgen
that referenced
this issue
Sep 22, 2022
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "types are declared first, then all structs, then all consts, then all function signatures, etc. [1] rust-lang#1743 Signed-off-by: Amanjeev Sethi <[email protected]> Co-authored-by: Christian Poveda <[email protected]> Co-authored-by: Darren Kulp <[email protected]>
qsdrqs
pushed a commit
to qsdrqs/rust-bindgen
that referenced
this issue
Oct 26, 2022
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "types are declared first, then all structs, then all consts, then all function signatures, etc. [1] rust-lang#1743 Signed-off-by: Amanjeev Sethi <[email protected]> Co-authored-by: Christian Poveda <[email protected]> Co-authored-by: Darren Kulp <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When generating bindings for say SDL2 you get output portions like this:
It would be nice if all items could be sorted so that (for example) all types are declared first, then all structs, then all consts, then all function signatures, etc.
The text was updated successfully, but these errors were encountered: