summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-18emit warnings laterChristian Poveda
2022-08-18remove macro in favor of a methodChristian Poveda
2022-08-18test warning emissionChristian Poveda
2022-08-18store warnings and emit them laterChristian Poveda
2022-08-11docs(CONTRIBUTING): add a note for single test runAmanjeev Sethi
test-one.sh needs to run `dot` command which is installed via Graphviz. Else, running the script throws error - `dot` command not found.
2022-08-09Add test coverage for 'await' and 'async' keywordsBryn M. Reeves
Add declarations for 'await' and 'async' variables to keywords.h and update the expectations in keywords.rs.
2022-07-27adds 'await' to list of matches in 'rust_mangle'Bryn M. Reeves
2022-07-25ty: Use canonical type to access pointee.Emilio Cobos Álvarez
Using the canonical type fixes this but changes the output of some tests (in particular, pointer to typedefs now point to the underlying type). So do this only in known-bad cases. Fixes #2244
2022-07-21Mark update to clap in CHANGELOGDarren Kulp
2022-07-21Update clap and its dependenciesDarren Kulp
cargo update --package=clap --aggressive
2022-07-18Bump MSRV to 1.57.0Darren Kulp
2022-07-16Don't use `Arg::takes_value` when it's implied by other calls.Jim Blandy
Both `Arg::value_name` and `Arg::number_of_values` imply `Arg::takes_value`, so those calls are just noise.
2022-07-16Add revision suggestion for MSRV >= 1.59.0onalante-msft
2022-07-16Extract pointer once for all alignment testsonalante-msft
2022-07-16Regenerate tests targeting libclang 5onalante-msft
2022-07-16Regenerate tests targeting libclang 9onalante-msft
2022-07-16Only insert uninit_decl if check_field_offset is non-emptyonalante-msft
2022-07-16rustfmtonalante-msft
2022-07-16Remove functions, use same uninit for all field testsonalante-msft
2022-07-16Place field alignment test functions before statementsonalante-msft
Clears clippy::items_after_statements warning for tests.
2022-06-23Bump msrv to 1.56.1Justin Smith
2022-06-23Fix link for creduce building/installationDanny Mösch
2022-06-06Bump regex from 1.4.6 to 1.5.5dependabot[bot]
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.6 to 1.5.5. - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.4.6...1.5.5) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06Bump version.v0.60.1Emilio Cobos Álvarez
2022-06-06Update test expectations.Emilio Cobos Álvarez
2022-06-06tests: Make some other tests auto-update with BINDGEN_OVERWRITE_EXPECTED=1Emilio Cobos Álvarez
2022-06-06codegen: tests: Put each individual field test in a function.Emilio Cobos Álvarez
So that rustc doesn't take too much stack space without optimizations. Fixes #2218
2022-06-05v0.60.0v0.60.0Emilio Cobos Álvarez
Closes #2209
2022-06-05options: Implement --version manually and print clang version on --version ↵Emilio Cobos Álvarez
--verbose Fixes #2138
2022-06-05Skip input headers in Linguist statisticsDarren Kulp
[skip ci]
2022-06-05Skip generated files in Linguist statisticsDarren Kulp
[skip ci]
2022-06-05Fix some clippy warningsDarren Kulp
cargo clippy --fix --tests cargo +nightly fmt
2022-06-05Invoke clippy better for testsDarren Kulp
See https://github.com/rust-lang/rust-clippy/issues/1436#issuecomment-462059561
2022-06-05ir: Centralize must_use checks and simplify codegen.Emilio Cobos Álvarez
2022-06-05Look for `must_use` on typdefs in function returnIan Chamberlain
Closes #2206
2022-06-03deps: Update `which` crate to 4.2.2Darren Kulp
Fixes #2181.
2022-05-31upgrade clang-sys from 1.2.0 to 1.3.3Nick Desaulniers
Via: $ cargo update -p clang-sys Contains a fix that was preventing me from running bindgen in my env. Link: https://github.com/KyleMayes/clang-sys/issues/138 Link: https://github.com/KyleMayes/clang-sys/pull/142 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2022-05-17Fix "dereferencing a null pointer" in C layout testsGavin Li
Instead of dereferencing a null pointer, create a MaybeUninit from which we can extract well-defined addresses.
2022-05-08Fix NoneType erroralexdevteam
2022-05-08provide information how to link to shared objectsjakobgerhardt
2022-05-08Update GitHub Actions actions/checkout@v2 to v3David Tolnay
The v2 implementation uses Node 12, which is end-of-life on April 30, 2022. See https://nodejs.org/en/about/releases/. Update to v3, which is based on Node 16 whose support lasts until April 30, 2024.
2022-05-08Derive from any other trait only when deriving from CopyMichal Rostecki
It's impossible to #[derive] from any other trait when not deriving from Copy when using the newest Rust nightly. Any attempt to do that results in the following error: error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133) Fixes: #2083 Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
2022-04-19Fix panic!() argument (quote it)Henryk Paluch
2022-04-19Use common type alias for anonymous enums in consts modeAlan Wu
Previously, anonymous enums generated a type alias but did not use it. For example the following: ```C enum { ZERO, ONE = 4999, }; ``` Generated this: ```Rust /* automatically generated by rust-bindgen 0.59.2 */ pub const ZERO: ::std::os::raw::c_uint = 0; pub const ONE: ::std::os::raw::c_uint = 4999; pub type _bindgen_ty_1 = ::std::os::raw::c_uint; ``` For use cases where humans look at bindgen's Rust output this was a little strange since it's a deviation from how the Rust output for named enums is organized, where all constants share the same type using the type alias. The unused type alias also triggered the dead_code lint. Change to use the generated type alias.
2022-03-15codegen: Fix minor clippy warning.Emilio Cobos Álvarez
2022-03-15add attributes to dynamic functionsEmil Gardström
this includes comments and must_use annotations
2022-03-15disable test_clang_env_args on windowsEmil Gardström
2022-03-15disable some tests on windowsEmil Gardström
This is due to differences in representation of `signed long` and `unsigned long` on most Linux-based systems and Windows (`64` vs. `32` bits)
2022-03-15disable layout tests for `derive-custom` and `convert-cpp-comment-to-rust` testEmil Gardström
2022-03-15escape `\` in paths for tests modulesEmil Gardström