Emilio Cobos Álvarez
Emilio Cobos Álvarez
Yeah I think raw-line is more flexible and already a thing.
Seems sensible.
We have already a `wasm_import_module_name` option that adds such an attribute where you want, afaict. Extending / generalizing that seems better. Given we merge the blocks I think it'd be...
I'd take a reasonable patch for this, sure :)
> So I think to support this, it might make sense to try to move the logic to check if "align" is explicitly needed into an earlier stage, maybe somewhere...
Is it? It's hard to say what version of a redefined macro should be generated IMO... But yeah, I guess the latest one seems reasonable. My `bindgen/ir/var.rs` is what handles...
Interesting. We're reading stuff from libclang, but IIRC there were some quirks with how we get the right function type.
That's kind of intentional, because functions taking a `node_kinds` would need to accept a c-int (would break the ABI otherwise).
Same for structs containing it or what not. Thus, not clear it's a bug, would be rather dangerous to do as proposed. But please reopen if you disagree or I've...
reopening as per the above though I still think it'd be rather footgunny.