ffi-clang
ffi-clang copied to clipboard
Ruby FFI bindings for libclang 3.4+.
Hi @ioquatix, Thank you for writing these bindings! :+1: I'm trying to extract function comments. However, whenever there are angle brackets in a comment, extra newline `\n` characters are being...
This gem won't be able to be used as-is, since `cygwin1.dll` apparently does not export the structure of `time_t`. Here is a potential fix, assuming LLVM+Clang have been installed into...
The current solitary example shows well how to extract data/tokens, but it's very spartan, too spartan, to be honest. Is there a chance to add some more extensive examples? Perhaps...
I was having problems with llvm 10.0 on my linux desktop, I don't know if this addresses those issues. _Originally posted by @ioquatix in https://github.com/ioquatix/ffi-clang/pull/49#issuecomment-691785867_
``` require 'ffi' require 'ffi/clang' class TestStruct < FFI::Struct layout :a,:int, :b,:int, :c,:pointer end ``` ERROR Message: ``` Traceback (most recent call last): 6: from t-ffistruct.rb:3:in `' 5: from t-ffistruct.rb:4:in...
I must be missing something. Using the code example in the readme on a small snippet of C++ code doesn't print anything, and trying on a larger code sample only...
Reproducible with code which is kind of long, but nests visit_children calls. ``` (lldb) bt * thread #1: tid = 0x2c0a0f, 0x00007fff90e1437a libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason...
How to fix this error? OS: macOS Sonoma 14.6.1 Apple clang version: 15.0.0 (clang-1500.3.9.4) Ruby: 3.3.5 Gems: ffi (1.17.0 arm64-darwin) ffi-clang (0.10.0) I try to run `bro-gen.rb` from https://github.com/dkimitsa/robovm-bro-gen But...