Christian Poveda Ruiz

Results 298 comments of Christian Poveda Ruiz

Hi @kriswuollett, I tried to add a test to our suite so we could catch any regressions but I wasn't able to reproduce it: https://github.com/rust-lang/rust-bindgen/pull/3034. Check the [expectation file](https://github.com/rust-lang/rust-bindgen/blob/pvdrz/fix-derive-attr-order/bindgen-tests/tests/expectations/tests/derive-and-attribute-order.rs) specifically...

I've noticed this same behavior with electron apps such as `spotify` and `signal-desktop`. By checking signal's logs it seems the app is actually trying to render the window: ```text {"level":30,"time":"2024-08-30T16:28:54.162Z","msg":"System...

This might be relevant: https://github.com/rust-lang/rust-bindgen/issues/2949#issuecomment-2419825519

what happens if you use the clang macro fallback?

`--clang-macro-fallback` if you're using the CLI or `.clang_macro_fallback()` if you're using the library.

That happens thanks to this beautiful piece of C in `sockets.h`: ```c /* Bits in the FLAGS argument to `send', `recv', et al. */ enum { MSG_OOB = 0x01, /*...

Maybe `--sort-semantically` should be superseded by a `ParseCallback` that gives you the necessary info to sort it however you want.

This issue makes me think that we need some standard way to turn `ParseCallbacks` into some kind of interface that works nicely with `bindgen-cli`. The easiest thing that comes to...