Clang.jl icon indicating copy to clipboard operation
Clang.jl copied to clipboard

C binding generator and Julia interface to libclang

Results 52 Clang.jl issues
Sort by recently updated
recently updated
newest added

In UCX.jl I used Clang to generate wrappers, but ucx provides a header only function `ucp_init`: https://github.com/openucx/ucx/blob/0e37370648f857e23d5775a0c5b3aa609044e43c/src/ucp/api/ucp.h#L1446-L1452 which ended up as https://github.com/JuliaParallel/UCX.jl/blob/2cc867f6c98f9f5f616f2df5aa1e666880dbfb62/gen/libucp_api.jl#L33-L35 and since it is a static header-only function...

I tried to install on 1.12-dev, and got this. I believe that this is because LLVM.jl is not available, and somehow this leads to fall back to really old version...

Started to use the Clang.jl generator, and at least on Windows, there are bugs in TypedefFunction (Clang.CLTypedefDecl). At line 75 in https://github.com/JuliaInterop/Clang.jl/tree/master/src/generator /print.jl there is a call to tokenize which...

This failed for me on 1.10 but works in 1.9.4 ```julia julia> args = get_default_args() Downloaded artifact: GCCBootstrap-x86_64-w64-mingw32.v4.8.5.x86_64-linux-musl.unpacked Downloaded artifact: GCCBootstrap-x86_64-w64-mingw32.v4.8.5.x86_64-linux-musl.unpacked ERROR: Unable to automatically download/install artifact 'GCCBootstrap-x86_64-w64-mingw32.v4.8.5.x86_64-linux-musl.unpacked' from sources...

I currently don't have time to push this forward but the binding generator in https://github.com/JuliaLabs/MLIR.jl currently runs on top off #435 If I recall the issue the MLIR headers contain...

NgSpice has a habit of establishing most enum-like constants with `#define`: https://github.com/imr/ngspice/blob/902a62d2f442a1d8322ae4fcad35c143c7a14561/src/include/ngspice/noisedef.h#L72-L74 but then occasionally introducing an `enum { ... }` with the same names wrapped in an ifdef guard:...

macro

It's not uncommon for C libraries to use `#define` to rename a function: ```c // test.h #define fprintf sh_fprintf ``` but this will generate an invalid `const` definition: ```julia module...

macro

- define TypeAliasFUnction - add support for CXType_Enum

This allows for a faster workflow when developing the package. Also made a few paths in the tests explicitly relative to the `test/` directory instead of the PWD (since that...