Clang.jl
Clang.jl copied to clipboard
C binding generator and Julia interface to libclang
I am generating the bindings for Hwloc_jll, and I encountered a few edge cases that I thought you might like to know about -- all of these have straightforward workarounds,...
There are a few structs which take a pointer to another struct as one of its fields. For example, in a certain generated code: ``` mutable struct A x::Ptr{B} y::C...
I have found that if the JLL I'm generating bindings for contains a forward declaration to a struct which is defined in one of its dependencies (which I include as...
I'm having troubles parsing a C++ project with Clang.jl v0.18.0 and julia v1.11 (which uses llvm16). To be clear, my current parsing script works fine with same version of Clang.jl...
It takes almost 1min on my m1 machine to generate only 7k loc: https://github.com/Gnimuc/ClangCompiler.jl/blob/main/lib/17/LibClangEx.jl whereas, the codegen process only takes seconds...
### Discussed in https://github.com/JuliaInterop/Clang.jl/discussions/497 Originally posted by **maleadt** June 18, 2024 I'm trying to wrap some macOS C header, which has the following: ``` #ifdef __APPLE__ #import #endif // __APPLE__...
```C typedef int INT; #define FIVE ((INT) 4+1) ``` produces the following nonsense definition: ```julia const INT = Cint const FIVE = (INT(4))(1) ```
This PR attempts to finish #425 which was seemingly abandoned with only docstrings missing. I cherry-picked the commit from #425 that wasn't already merged, and added the missing docstrings. Closes...
also fix clang exec dirs