summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-09Fix formattingJustin Smith
2022-09-09Use str::strip_prefixJustin Smith
2022-09-09Merge branch 'rust-lang:master' into generated_name_overrideJustin W Smith
2022-09-08fix clippy lintsChristian Poveda
2022-09-05replace the `TraversalPredicate` trait with an alias typeChristian Poveda
2022-09-01address clippy lintsChristian Poveda
2022-08-25Generate opaque type for template param dependent bit field widthCollin Baker
libclang's API does not provide a straightforward way to check for this, and calling clang_getFieldDeclBitWidth is actively unsafe in this case. See https://github.com/llvm/llvm-project/issues/56644 We probably can't generate reasonable bindings for such a type, so make the binding opaque. Ideally libclang would report if the bit width could not be evaluated. Unfortunately making such a change would mean bumping the minimum libclang version from 6.0 to 15.0. Instead, add logic to traverse the AST subtree starting from the field's bit width specifier looking for template parameters. If we find one, we make the resulting type opaque.
2022-08-25Sorting the output semantically (#2254)Amanjeev Sethi
Generated code needs some sorting in a way that is semantically appealing. The request[1] asks for basic sorting like "types are declared first, then all structs, then all consts, then all function signatures, etc. [1] https://github.com/rust-lang/rust-bindgen/issues/1743 Signed-off-by: Amanjeev Sethi <aj@amanjeev.com> Co-authored-by: Christian Poveda <christian.poveda@ferrous-systems.com> Co-authored-by: Darren Kulp <darren@kulp.ch>
2022-08-18rustfmtChristian Poveda
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-23Generated name overrideJustin Smith
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