Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fully generated clang P/Invokes #12

Open
atsushieno opened this issue Apr 13, 2019 · 0 comments
Open

fully generated clang P/Invokes #12

atsushieno opened this issue Apr 13, 2019 · 0 comments

Comments

@atsushieno
Copy link
Owner

split from #11.

Right now there are NClang.Natives/*.cs which are manual bindings for libclang C API. Since we have PInvokeGenerator it should be possible to completely generate these classes from C headers.

There is a work in progress branch generate-natives. So far it already builds, but causes run-time failures.

There is actually little benefit. The clang-c API is quite stable and does not break. There hasn't been a lot of additional API in clang-c. And automatic code generation results in silly hand-bound marshaling.

Is it still worth achieving this goal? Maybe. There should be some mapping support by external sources e.g. to determine which function parameters are mere pointers, arrays, or "out" or "ref" parameters, etc. And it will become a good dogfooding for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant