Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-09-17 | Rustfmt. | Emilio Cobos Álvarez | |
2019-09-17 | Return Error if no rustfmt path given and which-rustfmt feature is disabled | Ryan Lopopolo | |
2019-09-17 | Do not use which if which-rustfmt feature is disabled | Ryan Lopopolo | |
This commit changes the API of rustfmt_path to return Result<Option<Cow<PathBuf>>>. Ok(None) is returned in the case where which is disabled and no rustfmt command is supplied explicitly either via configuration or env variable. Downstream code checks for the presence of None to directly return the source without emitting an error. | |||
2019-09-02 | Update syn related dependencies and bump version | Bastien Orivel | |
2019-07-27 | Fix beta build warnings / errors. (#1603) | Emilio Cobos Álvarez | |
Fixes #1598 | |||
2019-07-26 | Allow to override rustfmt path with an environment variable. | Emilio Cobos Álvarez | |
Fixes #1601 | |||
2019-07-24 | Cleanup wchar_t layout computation to happen later. (#1596) | Emilio Cobos Álvarez | |
This is a breaking cheange since WChar is exposed, but should be no behavior change otherwise. | |||
2019-07-23 | Don't emit #[repr(align(0))] for empty unions (#1595) | Patrick Marks | |
2019-07-15 | Fix layout computation for union forward declarations (#1593) | Patrick Marks | |
2019-07-10 | ir: Properly find the layout of incomplete arrays. | Emilio Cobos Álvarez | |
So as to not pad stuff incorrectly, or needlessly add extra alignment, for example. Fixes #1589 | |||
2019-07-09 | Improve workaround for LLVM bug when evaluating value-dependent expressions. | Emilio Cobos Álvarez | |
Using the canonical type makes it work across typedefs. Fixes #1590 | |||
2019-06-25 | Make BlockPointer's canonical type in IR be itself, not as if it is an alias. | Garrett Nickel | |
2019-06-12 | Style fixes. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575 | |||
2019-06-11 | Add rust target configuration for feature #1554 | uk | |
Will panic if the feature is being used outside nightly. See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292231027 | |||
2019-06-11 | Rename a couple miscalled identifiers. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575 | |||
2019-06-10 | Add support for non_exhaustive rustified enums. | uk | |
Implements the feature discussed in https://github.com/rust-lang/rust-bindgen/issues/1554. | |||
2019-06-06 | For rust-target >= 1.30, make __IncompleteArrayField::new a const fn | Colin Wallace | |
2019-06-06 | For rust-target >= 1.30, make __BindgenUnionField::new a const fn | Colin Wallace | |
2019-06-06 | FIX #1571: For rust-target >= 1.30, make __BindgenBitfieldUnit::new a const fn | Colin Wallace | |
2019-06-06 | Remove the parameter bounds for __BindgenBitfieldUnit::new | Colin Wallace | |
This will enable `new` to be changed to a `const fn` in a future patch: `const fn`s do not support trait bounds. | |||
2019-05-24 | updated `default-enum-variant` to `default-enum-style` | Elichai Turkel | |
2019-05-22 | Added array pointers to the CLI | Elichai Turkel | |
2019-05-22 | Added array pointers codegen | Elichai Turkel | |
2019-05-22 | Added array_pointers to the builder | Elichai Turkel | |
2019-05-21 | Update Links | Alex Touchet | |
2019-05-15 | Only emit #[link_name] attribute if necessary. | Michael Woerister | |
2019-05-12 | Revert "Switch to hashbrown." | Emilio Cobos Álvarez | |
This reverts commit 8a579b134dbaf369803cffbe835ba14ab2765fba. Reason for revert: hashbrown made it to libstd, so this saves some dependencies. | |||
2019-05-06 | Remove unused mut. | Emilio Cobos Álvarez | |
2019-04-26 | Remove redundant imports. | Emilio Cobos Álvarez | |
2019-03-26 | options: Add an option to opt-out of include path detection. | Emilio Cobos Álvarez | |
And don't do it conditionally on the presence of --target. We pass the clang arguments to clang-sys now, so it doesn't get the wrong path. | |||
2019-03-25 | ir: Whitelist items that don't generate code to improve derive behavior. | Emilio Cobos Álvarez | |
When not whitelisting recursively. Fixes #1454 | |||
2019-03-21 | Derive Default for function pointers | Jethro Beekman | |
2019-03-21 | Unify derive logic | Jethro Beekman | |
2019-03-15 | Merge pull request #1537 from jhwgh1968/clang_env_args | Emilio Cobos Álvarez | |
Add BINDGEN_EXTRA_CLANG_ARGS env variable | |||
2019-03-13 | Add BINDGEN_EXTRA_CLANG_ARGS env variable | jhwgh1968 | |
2019-03-10 | fix issue #1535 | Porter Smith | |
2019-03-06 | Work around a libclang bug / limitation. | Emilio Cobos Álvarez | |
For references, libclang returns the size and align of the pointee. This actually matches how C++'s sizeof() and alignof() works, for some reason, though in this case we really want to know the pointer's layout. Anyhow, we know the target pointer size, so manually handle this case. Filed https://bugs.llvm.org/show_bug.cgi?id=40975 for this. | |||
2019-03-04 | codegen: Properly track alignment of unions. | Emilio Cobos Álvarez | |
This makes us not unnecessarily add repr(align) to unions. Closes #1498. | |||
2019-03-04 | Update default rust target to 1.33. | Emilio Cobos Álvarez | |
Closes #1529. | |||
2019-02-22 | Work-around https://bugs.llvm.org/show_bug.cgi?id=40813. | Emilio Cobos Álvarez | |
This fixes a crash when using non-deductible auto types. | |||
2019-02-11 | fix one argument block pointer issue, #1378 | Flier Lu | |
2019-02-04 | codegen: Append implicit template parameters to base members. | Emilio Cobos Álvarez | |
Fixes #1514 | |||
2019-02-03 | Rework the way that argument types and names are found from function signatures. | Porter Smith | |
This fixes the issue seen in #1500 where function pointers as a return type have their parameters incorrectly generated. This also fixes a broken test case, objc_property_fnptr, as its types are now generated correctly. | |||
2019-02-03 | ir: Ignore constructors with bogus spellings. | Emilio Cobos Álvarez | |
2019-01-25 | Produce a more useful error message when rustfmt can't be found. Fixes #1205 | Ted Mielczarek | |
Prior to this change bindgen would simply print any error that occurred while attempting to run rustfmt straight to stderr using fmt::Debug. Combined with the fact that rustfmt is enabled by default now this meant that if rustfmt was missing or not working a cryptic error would be printed. | |||
2019-01-18 | Fix layout with packed class that only has a vtable | Tom Tromey | |
I noticed that a `#pragma packed` class that has only a vtable but no data members is not marked repr(packed). The bug is that is_packed examines data members but not the vtable when applying its heuristic. | |||
2019-01-16 | Document some macros. | Emilio Cobos Álvarez | |
2019-01-08 | Support #[repr(packed(N))] on Rust 1.33+ | Christian Legnitto | |
Fixes https://github.com/rust-lang/rust-bindgen/issues/537. | |||
2019-01-03 | Bitfield enums use #[repr(transparent)] on Rust 1.28+ | Christian Legnitto | |
Fixes https://github.com/rust-lang/rust-bindgen/issues/1474. | |||
2019-01-01 | Remove deprecated calls to trim_(right|left)_matches | Christian Legnitto | |
Fixes https://github.com/rust-lang/rust-bindgen/issues/1480 |