这是indexloc提供的服务,不要输入任何密码
Skip to content

fully generated clang P/Invokes #12

@atsushieno

Description

@atsushieno

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions