clang-rs
clang-rs copied to clipboard
A somewhat idiomatic Rust wrapper for libclang.
~~Depends on https://github.com/KyleMayes/clang-sys/pull/145.~~ Previously, you could only create one `Clang` across all threads. This is a problem when trying to use `Clang` in tests which run in parallel. This change...
CI complains about some deprecations ``` Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout, actions/cache, actions-rs/toolchain, actions-rs/cargo, actions-rs/cargo,...
Using main branch with clang15.0.3, run cargo test locally, I got error ``` libclang: clang version 15.0.3 (https://github.com/llvm/llvm-project.git 4a2c05b05ed07f1f620e94f6524a8b4b2760a0b1) thread 'test' panicked at 'assertion failed: `(left == right)` left: `7`,...
Hey, thanks a lot for making this library, it's great! When you get around to releasing a new version, may I suggest the following? - A lot of methods use...
This is detectable through the standard library's debug assertions, which are currently only usable on a nightly compiler with `-Zbuild-std`, or if you build your own compiler and standard library...
The CXCursor_TranslationUnit change value in LLVM 15 from 300 to 350 (see [this commit](https://github.com/llvm/llvm-project/commit/bb83f8e70bd1d56152f02307adacd718cd67e312)). The `clang::EntityKind::TranslationUnit` value is then wrong and a translation unit entity kind become `NotImplemented`.
Hi Kyle, Can you please explain reasoning behind disabling autoimpls for Send and Sync in the new release of `clang`? Is it just a precaution or is there some issue...
Hi, i came across this lib and had a look if I could use it for a project of mine. Along the way, I checked if there were low-hanging fruit...
Creating an instance of `Clang` involves calling `clang-sys::load()` which dynamically loads the clang library for the currently executing thread. With `Clang: Send` (which is implemented automatically due to the auto-trait...