immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.91k stars 229 forks source link

analyze: generate casts around call arguments and results #936

Closed spernsteiner closed 1 year ago

spernsteiner commented 1 year ago

This branch updates the rewriter to add casts around function calls and their arguments. We mainly need this so we can add casts to and from raw pointers around calls to non-rewritten functions.

More specifically, this branch does the following:

spernsteiner commented 1 year ago

Could the #[c2rust_analyze_test::*] attribute commits (and a test/example for them) be split into their own PR based on master?

Opened #942