Cppmethods

Hi, are you actively maintaining rust-bindgen ?

Please you could review and consider my changes to add some sort of limited CPP support to the binding generator.
I'm only intending to handle a tiny subset of C++ , but i can rework my own C++ sources for easier rust interop.

"make testcpp" to run the example

My first stage is here, I generate fn classname_methodname(&classname..) fn's for CPP methods found in a struct/class - along with a wrapper impl rust side ..


impl StructName  {
    methodname(self..) {  StructName_methodname(self, ... )}
    ..
}

I intend to make rust-bindgen spit out the corresponding C++ side function calls.

I would also like to add rudimentary substitution of some templates; ive written a read-only rust equivalent of std::vector, and figure it might be possible to find field instantiations that use them and replace with the rust equivalent. (I haven't got far with this yet..)

If you have any ideas on this, suggestions for better approaches etc, i'd we interested to hear
I'm new to rust obviously and if you can suggest ways to improve my modifications to make integrating easier then great.

i modified a couple of the original functions & structs .. cfunc_args_to_rs returns the argument-name list as a second parameter.. and added [Methods] to CComp

I hope that these additions can go in orthogonally to the underlying C support.. (leaving fields empty)
I realise that adding complexity is a worry