summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-14Enforce rustfmt on automation.Emilio Cobos Álvarez
2019-10-14Run `cargo fmt` on the main crate.Emilio Cobos Álvarez
2019-10-14tests: Reformat test crate.Emilio Cobos Álvarez
Now that the rustfmt configuration is different we need to do this to not generate unexpected failures.
2019-10-14tests: Use the same rustfmt configuration as the parent directory.Emilio Cobos Álvarez
This allows us to workaround/fix https://github.com/rust-lang/rustfmt/issues/3799
2019-10-14tests: Fix some warning in the test crate.Emilio Cobos Álvarez
2019-10-14Add llvm 9.0 to CI.Emilio Cobos Álvarez
2019-10-14Update test expectations for libclang 9.0.Emilio Cobos Álvarez
2019-10-14Create clang-9-specific test directory, as a copy of clang-5.Emilio Cobos Álvarez
2019-10-14tests: Look at expectations/tests/libclang-9 expectations.Emilio Cobos Álvarez
2019-10-14tests: Look at the more specific tests first, but don't require specific ↵Emilio Cobos Álvarez
expectations for all llvm versions.
2019-10-14function: Fix #[must_use] support in libclang 9+.Emilio Cobos Álvarez
2019-10-14features: core::ffi::c_void isn't really available before 1.30.Emilio Cobos Álvarez
2019-10-08Fix BitfieldUnit constructor to handle 64 bit wide bitfields on 32 bit.Cameron McCormack
Fixes #1639.
2019-10-08Rename Item::canonical_name_cache for consistency.Cameron McCormack
2019-10-08Use a LazyCell for Item::canonical_name_cache and Item::local_id.Cameron McCormack
It's slightly neater.
2019-10-08Cache the result of Item::path_for_whitelisting.Cameron McCormack
2019-10-08Add ParseCallbacks handler for included fileschrysn
As the clang_File_tryGetRealPathName function is only exposed by clang_sys for clang >= 7.0, this raises the clang dependency. Closes: https://github.com/rust-lang/rust-bindgen/issues/1635 The book example code for creating a builder to run inside Cargo is extended by using the rereun-if-changed headers.
2019-10-08Don't always output translation_unit timer.Cameron McCormack
2019-10-04Update env_logger and run a full cargo updateBastien Orivel
2019-10-04Build the rustified_non_exhaustive_enums RegexSet.Cameron McCormack
2019-10-04Add a couple more timers.Cameron McCormack
For the remaining named parts of Context::gen.
2019-10-03Use c_void from core when --use-core is specifiedKyle Tomsic
`c_void` is available as `::std::os::raw::c_void` and `::core::ffi::c_void`. If the "--use-core" option is specified (but no --ctypes-prefix is provided), we should emit `::core::ffi::c_void` rather than the `std` one.
2019-09-28Fallback: call "rustfmt" directly without whichheidezomp
If the `which-rustfmt` feature isn't enabled, assume that the binary is called "rustfmt" and that it is in the user's PATH, instead of returning an error.
2019-09-24Mention v0.51.1-oldsyn.Emilio Cobos Álvarez
2019-09-23Fix changelog links.Emilio Cobos Álvarez
2019-09-23Release v0.51.1v0.51.1Emilio Cobos Álvarez
(Cargo.toml file was updated already in the syn update)
2019-09-23ir: Make Ord and PartialOrd implementations agree.Emilio Cobos Álvarez
See https://github.com/rust-lang/rust/issues/64710. Bogus implementations were introduced in 230545e7c, d3e39dc62, and 379bb1663.
2019-09-23Upgrade 'which' to remove indirect dependency on 'failure'.Adrien Prokopowicz
2019-09-23fxhash -> rustc-hashEvgeniy A. Dushistov
fixes #1616
2019-09-20Update Debian requirements.Emilio Cobos Álvarez
Closes #1613
2019-09-17Improve the script to enforce rustfmt on automation.Emilio Cobos Álvarez
2019-09-17Rustfmt.Emilio Cobos Álvarez
2019-09-17Add rustfmt to nightly toolchainRyan Lopopolo
2019-09-17Set RUSTFMT for nofeatures testsRyan Lopopolo
2019-09-17lint ci/script.shRyan Lopopolo
2019-09-17Test bindgen with no default featuresRyan Lopopolo
2019-09-17Return Error if no rustfmt path given and which-rustfmt feature is disabledRyan Lopopolo
2019-09-17Do not use which if which-rustfmt feature is disabledRyan 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-17Add which-rustfmt featureRyan Lopopolo
This feature controls whether bindgen will use the which crate to detect the rustfmt binary. This makes which an optional dependency. which-rustfmt is a default feature which makes this change backward compatible.
2019-09-02Update syn related dependencies and bump versionBastien Orivel
2019-07-27Fix beta build warnings / errors. (#1603)Emilio Cobos Álvarez
Fixes #1598
2019-07-26Release 0.51.0.v0.51.0Emilio Cobos Álvarez
2019-07-26Allow to override rustfmt path with an environment variable. (#1602)Emilio Cobos Álvarez
Also fix rustfmt installation to be via rustup, since rustfmt-nightly doesn't compile in nightly rust. Fixes #1601
2019-07-26Fix rustfmt installation to be via rustup.Emilio Cobos Álvarez
2019-07-26Allow to override rustfmt path with an environment variable.Emilio Cobos Álvarez
Fixes #1601
2019-07-24Cleanup 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-23Don't emit #[repr(align(0))] for empty unions (#1595)Patrick Marks
2019-07-15Fix layout computation for union forward declarations (#1593)Patrick Marks
2019-07-10Merge pull request #1592 from emilio/incomplete-array-layoutEmilio Cobos Álvarez
ir: Properly find the layout of incomplete arrays.
2019-07-10ir: 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