summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-04integration: Fix integration tests with rust 1.33.v0.48.0Emilio Cobos Álvarez
Alignment arrays are not needed anymore, since we have repr(align).
2019-03-04codegen: Properly track alignment of unions.Emilio Cobos Álvarez
This makes us not unnecessarily add repr(align) to unions. Closes #1498.
2019-03-04Update default rust target to 1.33.Emilio Cobos Álvarez
Closes #1529.
2019-02-25Allow to use which 1.0.v0.47.3Emilio Cobos Álvarez
It builds fine, and works around backtrace not building in aarch64. https://github.com/alexcrichton/backtrace-rs/issues/160
2019-02-23Merge pull request #1525 from emilio/llvm-bug-workaroundv0.47.2Emilio Cobos Álvarez
Work-around https://bugs.llvm.org/show_bug.cgi?id=40813.
2019-02-22Bump version.Emilio Cobos Álvarez
2019-02-22Work-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-11Merge pull request #1519 from flier/fix-one-argument-block-pointerEmilio Cobos Álvarez
fix one argument block pointer issue, #1378
2019-02-11fix one argument block pointer issue, #1378Flier Lu
2019-02-05Merge pull request #1517 from Niederb/small-tutorial-fixEmilio Cobos Álvarez
Small fix in tutorial
2019-02-05Small fix in tutorialThomas Niederberger
2019-02-04Merge pull request #1515 from emilio/implicit-baseEmilio Cobos Álvarez
codegen: Append implicit template parameters to base members.
2019-02-04codegen: Append implicit template parameters to base members.Emilio Cobos Álvarez
Fixes #1514
2019-02-03Merge pull request #1508 from flowbish/function_ptr_return_typeEmilio Cobos Álvarez
Add an alternate path determining the arguments for a function.
2019-02-03Rework 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-03Merge pull request #1513 from emilio/issue-1464Emilio Cobos Álvarez
ir: Ignore constructors with bogus spellings.
2019-02-03ir: Ignore constructors with bogus spellings.Emilio Cobos Álvarez
2019-02-03fuzzing: Add a --release flag to the predicate script.Emilio Cobos Álvarez
When you're not testing for debug assertions this is much faster.
2019-01-29Merge pull request #1505 from emilio/revert-clang-sys-upv0.47.1Emilio Cobos Álvarez
Revert #1489.
2019-01-29Version bump.Emilio Cobos Álvarez
2019-01-27Revert "Merge pull request #1489 from KyleMayes/clang-sys"Emilio Cobos Álvarez
This reverts commit 0d004a726d932cec27d94499e48bc7e3943cb457, reversing changes made to 2a01e8d499d71e596e4b02f8fd6897f061405e1a.
2019-01-25Merge pull request #1501 from luser/better-missing-rustfmt-errorEmilio Cobos Álvarez
Produce a more useful error message when rustfmt can't be found. Fixes #1205
2019-01-25Produce a more useful error message when rustfmt can't be found. Fixes #1205Ted 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-25Fix gitignore so ripgrep worksTed Mielczarek
ripgrep was failing to search in the bindgen repo: ``` ./.gitignore: line 19: error parsing glob '**.orig': invalid use of **; must be one path component ``` Per the gitignore docs it seems like ripgrep is correct and this line is invalid: https://git-scm.com/docs/gitignore#_pattern_format
2019-01-19Bump version and update changelog.v0.47.0Emilio Cobos Álvarez
2019-01-18Merge pull request #1495 from tromey/packed-only-vtableEmilio Cobos Álvarez
Fix layout with packed class that only has a vtable
2019-01-18Fix layout with packed class that only has a vtableTom 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-18Merge pull request #1494 from Ameobea/masterEmilio Cobos Álvarez
Fix book links when viewing via Github
2019-01-17Fix book links when viewing via GithubCasey Primozic
* Some pages of the book's documentation markdown pages used `.html` in their links rather than `.md`. This evidently works with `mdBook`, but fails when viewing the pages of the book from the Github source tree. * The `.html` links were replaced with `.md` to fix this.
2019-01-17Merge pull request #1486 from LegNeato/test_recordEmilio Cobos Álvarez
Add `BINDGEN_OVERWRITE_EXPECTED` for recording tests
2019-01-16Add `BINDGEN_OVERWRITE_EXPECTED` for recording testsChristian Legnitto
Currently when tests are run all expectations are overwritten. This makes it hard to debug a failing test, as every time one reruns `cargo test` the expectation is updated and subsequently passes. With this change we now check the `BINDGEN_OVERWRITE_EXPECTED` env variable. If set, we overwrite the expectation. If not, the contents stay the same and the test continues to fail.
2019-01-16Document some macros.Emilio Cobos Álvarez
2019-01-16Merge pull request #1489 from KyleMayes/clang-sysEmilio Cobos Álvarez
Update clang-sys
2019-01-12Update clang-sysKyle Mayes
2019-01-08Merge pull request #1485 from LegNeato/packedEmilio Cobos Álvarez
Support #[repr(packed(N))] on Rust 1.33+
2019-01-08Support #[repr(packed(N))] on Rust 1.33+Christian Legnitto
Fixes https://github.com/rust-lang/rust-bindgen/issues/537.
2019-01-07Merge pull request #1484 from LegNeato/patch-1Emilio Cobos Álvarez
Update changelog for #[repr(transparent)] change
2019-01-04Update changelog for #[repr(transparent)] changeChristian Legnitto
2019-01-04Merge pull request #1483 from LegNeato/repr_transparentEmilio Cobos Álvarez
Bitfield enums use #[repr(transparent)] on Rust 1.28+
2019-01-03Bitfield enums use #[repr(transparent)] on Rust 1.28+Christian Legnitto
Fixes https://github.com/rust-lang/rust-bindgen/issues/1474.
2019-01-02Merge pull request #1482 from LegNeato/fix_deprecationsEmilio Cobos Álvarez
Remove deprecated calls to trim_(right|left)_matches
2019-01-01Remove deprecated calls to trim_(right|left)_matchesChristian Legnitto
Fixes https://github.com/rust-lang/rust-bindgen/issues/1480
2018-12-30Merge pull request #1479 from emilio/libclang-path-logEmilio Cobos Álvarez
Log the libclang path.
2018-12-30Log the libclang path.Emilio Cobos Álvarez
2018-12-29Version bump.v0.46.0Emilio Cobos Álvarez
2018-12-29Merge pull request #1473 from emilio/hashEmilio Cobos Álvarez
Some perf tweaks
2018-12-29Merge pull request #1477 from emilio/zsa-alignEmilio Cobos Álvarez
codegen: Make zero-sized arrays affect alignment.
2018-12-28codegen: Make zero-sized arrays affect alignment.Emilio Cobos Álvarez
Fixes #684
2018-12-28Merge pull request #1476 from emilio/ctypes-identEmilio Cobos Álvarez
codegen: ctypes_prefix may not be an ident.
2018-12-28codegen: ctypes_prefix may not be an ident.Emilio Cobos Álvarez
This fixes a panic uncovered by the proc_macro update, which validates idents now. We were using it as a pretty crappy way to turn it into something that could be turned into a TokenStream. But TokenStream implements FromStr now.