Age | Commit message (Collapse) | Author |
|
This demonstrates the [...] abbreviation of large arrays in contrast to
the std variety. (Long (>32) arrays currently don't have a dedicated
test, but are piggy-backed on the derive-debug-bitfield and
derive-debug-function-pointer tests).
Note that the single occurrence of the `std` namespace in the
expectation is valid: No --ctypes-prefix was set, and ::std::os::raw is
the default value that needs to be overridden in most practical
--use-core applications.
|
|
As --use-core is typically given when the wrapped library is to be used
in a no_std environment, format! and String can not be used.
This is a quick fix that will cause regressions in the quality of the
debug output to users that use core but are not no_std, but enables the
use of bindgen with implemented Debug traits to no_std users.
Closes: https://github.com/rust-lang-nursery/rust-bindgen/issues/1100
|
|
Contributes-To: https://github.com/rust-lang-nursery/rust-bindgen/issues/1100
|
|
|
|
|
|
RegexSet uses regex::RegexSet internally since the commit linked
below, which compiles the regexes together.
https://github.com/rust-lang-nursery/rust-bindgen/commit/51f5162f250a5ec10bc5ba8b91b60b45762bc999
|
|
Not gnereate binding for variadic function with ms_abi
rustc fail to compile variadic function with ms_abi:
error[E0045]: variadic function must have C or cdecl calling convention
As suggested in issue, this short term fix: not generate binding
and emit a warning.
Fixes #997
|
|
rustc fail to compile variadic function with ms_abi:
error[E0045]: variadic function must have C or cdecl calling convention
As suggested in issue, this short term fix: not generate binding
and emit a warning.
Fixes #997
|
|
Change a call to add_item that was passing a NullCursor.
As a first step for issue #119, I modified the only call where we created a NullCursor to pass a None instead.
|
|
|
|
Map vector types to arrays and pass them by value
This PR maps vector types to arrays and passes them by value (that is, they are passed to C as `[T; N]`. This already allows defining them as a blacklisted opaque type, such that the user can provide its own definition from e.g. `std::arch`.
A subsequent PR should map vector types to unit structs with a private member:
```rust
#[repr(align(16))] pub struct __m128([f32; 4]);
```
to make their alignment at least be correct. This should allow transmuting `std::arch` types to these types properly.
Once that is done, we probably want to detect the canonical vector types (e.g. `__m128`) and pull in the type from `std`/`core`::arch instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add ability to blacklist functions.
Fixes #1336
|
|
|
|
|
|
Fixes #1336
|
|
|
|
select cpp or c search paths based on clang args
|
|
I feared that this might fail, but it doesn't! :)
|
|
|
|
To fix errors spawned since https://github.com/rust-lang/rust/issues/51443.
|
|
Use associated constants for rust enums when available
|
|
Quote regexes in test headers
|
|
Improve error message when libclang fails
|
|
|
|
When using test-one.sh, unquoted wildcards are expanded by the shell,
resulting in failing tests.
|
|
|
|
|
|
Track Rust target features with declaration macro
|
|
Regenerates the BSD3 License so GitHub recognises it
|
|
Eliminates the manual implementation of `From<RustTarget>` for
`RustFeatures`.
|
|
Fix integer_type to actually return integers all the time.
blob() does care about alignment, so we can get into an architecture where there
are integers where size != align.
This is a tentative fix for servo/servo#21093, though
as mentioned there I couldn't find a repro on my machine.
|
|
ir: Don't assume wchar is 2 bytes.
Fixes #1345
|
|
|
|
blob() does care about alignment, so we can get into an architecture where there
are integers where size != align.
This is a tentative fix for https://github.com/servo/servo/issues/21093, though
as mentioned there I couldn't find a repro on my machine.
|
|
Fixes #1345
|
|
codegen: Allow unused_mut to prevent warnings on little-endian machines.
And fixup whitespace.
This is a followup #1342.
|
|
|
|
|
|
Followup to #1342
|
|
|
|
Fix bitfields on big-endian machines.
Fixes #1340
|
|
|
|
Fixes #1340
|
|
Bump libclang.
Fixes #1276
|