Adrian Taylor
Adrian Taylor
[Here's a pattern](https://github.com/dtolnay/cxx/compare/master...adetaylor:cxx:std-function) to use `std::function` with current cxx facilities.
That feels to me like a slightly different problem than the one here - the current issue is about multiple conflicting names within a single `include_cpp!` whereas it sounds like...
Next steps here: try to spot these cases and ignore them. Adding good-first-bug label since that may be straightforward, depending on the information we're given here by bindgen.
It's possible that this specific test case is fixed by #1235 , but there are remaining problems - #1239.
I think this was fixed in #1180.
Sorry for the lack of progress here - this seemed to result in a test case which passed. I think I need to restart the minimization from scratch once again...
Next steps here: add a test and see what actually happens. Adding 'good first issue' for taking that step.
Yeah, sorry. I'd certainly be pleased to accept pull requests which can spot C++ functions that accept a [cxx `Fn`](https://cxx.rs/binding/fn.html) and then pass that through all our various pipeline stages...
I also explored the option of a newtype wrapper [in this branch](https://github.com/google/autocxx/compare/syn-newtype-wrapper) but it has hundreds of compile errors and would require radical changes throughout the code. It's possible that...
And a [third attempt here](https://github.com/google/autocxx/compare/syn-newtype-wrapper-3), using minisyn just for `api.rs`. This builds and runs, but output is still too verbose.