summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-04Move `__bindgen_anon_` to constant `DEFAULT_ANON_FIELDS_PREFIX`Varphone Wong
2020-08-04Fix “warning: irrefutable if-let pattern” on add to output_vectorVarphone Wong
2020-08-04Make anon-fields-prefix non-optionalDarren Kulp
2020-08-04Add --anon-fields-prefix optionVarphone Wong
Allow to use the given prefix for the anon fields instead of `__bindgen_anon_`.
2020-08-04Fixed const-ness of multidimensional arraysJoseph Angelo
2020-08-03codegen: Use shorthand initialization in EnumBuilder.Emilio Cobos Álvarez
This was introduced in #1850.
2020-08-03tests: Add a test for bool enum with an alias.Emilio Cobos Álvarez
2020-08-03Add --no-debug <regex> flagVarphone Wong
2020-08-03Improves bindings for typed and anonymous enumsCameron Mulhern
2020-08-03ci: Remove extraneous variable declarationDarren Kulp
2020-08-03ci: Explicitly select Ubuntu 16.04 (xenial)Darren Kulp
Xenial was being used anyway, but it is wise to be explicit. This lets us download a newer precompiled LLVM, too.
2020-08-03ci: Remove overrides for unsupported LLVM versionsDarren Kulp
2020-08-03ci: Use llvm-5.0.1 to simplify target tripleDarren Kulp
2020-07-27Explicitly run four macOS jobsDarren Kulp
2020-07-27Refactor before_install scriptDarren Kulp
Remove needless pushd that was causing trouble with `set -e` Remove old osx workaround for rvm Add shebang line Fix target descriptor Support LLVM versions 9.0.1+
2020-07-21Change non-fatal errors to warningsleo60228
2020-07-20Remove obsoleted `is_loaded` checksDarren Kulp
It is not clear what version of libclang these supported. Refer to #1321, #1304, #916, #915.
2020-07-20Remove testing_only_libclang_3_8 and expectationsDarren Kulp
2020-07-20Simplify handle_function_macro for clang 3.9+Darren Kulp
2020-07-20Stop accommodating libclang 3.8Darren Kulp
2020-07-20Stop testing libclang 3.8Darren Kulp
2020-07-20Stop accommodating libclang < 3.8Darren Kulp
2020-07-20Avoid needless `std::mem::replace`Darren Kulp
In Rust 1.45.0, `std::mem::replace` gained the `#[must_use]` attribute, causing a new diagnostic for some `bindgen` code : error: unused return value of `std::mem::replace` that must be used --> src/ir/comp.rs:751:17 | 751 | / mem::replace( 752 | | self, 753 | | CompFields::AfterComputingBitfieldUnits { 754 | | fields, 755 | | has_bitfield_units, 756 | | }, 757 | | ); | |__________________^ | = note: `-D unused-must-use` implied by `-D warnings` = note: if you don't need the old value, you can just assign the new value directly error: unused return value of `std::mem::replace` that must be used --> src/ir/comp.rs:760:17 | 760 | mem::replace(self, CompFields::ErrorComputingBitfieldUnits); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly error: aborting due to 2 previous errors
2020-07-06Release v0.54.1v0.54.1Emilio Cobos Álvarez
2020-07-06main: Remove unused use statement.Emilio Cobos Álvarez
2020-07-01tests: Check that command_line_args round-trips.Emilio Cobos Álvarez
Fixes #1818.
2020-07-01lib: Trivially fix various command line arguments that are not properly ↵Emilio Cobos Álvarez
round-tripping.
2020-07-01tests: Minor simplification of test harness.Emilio Cobos Álvarez
We were never returning Ok(None), so not sure why this was ever there.
2020-07-01Introduce expectation test for operator namesDarren Kulp
2020-07-01Refine test for C++ operatorsDarren Kulp
2020-06-29lib: Fix msrv build.Emilio Cobos Álvarez
error[E0277]: the trait bound `std::string::String: std::convert::From<&std::string::String>` is not satisfied --> src/lib.rs:460:37 | 460 | output_vector.push(line.into()); | ^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `std::string::String`
2020-06-29Properly shell quote flags in test outputTravis Finkenauer
2020-06-29Simplify multiple headers testTravis Finkenauer
Ensure that we try to generate() the test Builder. Remove unnecessary reserve() optimization.
2020-06-29Handle multiple headers for command_line_flags()Travis Finkenauer
Output from Builder::command_line_flags() would fail if more than one header were provided. This adds extra headers via the '-include' clang option.
2020-06-29lib: Stop using count() to do for loops.Emilio Cobos Álvarez
This itched me when reviewing #1816. Seems easier to switch those to loop over `get_items()`, but this patch also deduplicates the code a bit, because all that copy-pasta was also itching me. These flags don't have ordering dependencies, so the result builder should be equivalent.
2020-06-29Update some docs that are not changelogsDarren Kulp
2020-06-29Emit bindgen version in generated headerDarren Kulp
Update expectations
2020-06-29Disable generated comment in expectations testDarren Kulp
2020-06-29Add option to disable generated header commentDarren Kulp
2020-06-29Run `cargo +nightly fmt` on expectationsDarren Kulp
Impending overwrites to expectations should be as simple and regular as possible, so get the formatting done here.
2020-06-29Output clang args after '--'Travis Finkenauer
For command_line_flags(), some arguments (like '--no-record-matches') were added after '--'. The bindgen program would interpret these as clang args.
2020-06-22Respect changes to BINDGEN_EXTRA_CLANG_ARGSDarren Kulp
2020-06-22build: move the rebuild dependencies to somewhere where they don't seem test ↵Emilio Cobos Álvarez
specific.
2020-06-22Rebuild when clang_sys environment changesDarren Kulp
2020-06-21Introduce tests for functional macrosDarren Kulp
2020-06-21Generate func_macro callbacksDarren Kulp
2020-06-21Introduce func_macro to ParseCallbacks traitDarren Kulp
2020-06-21Introduce is_macro_function_likeDarren Kulp
2020-06-21Introduce extent to ClangTokenDarren Kulp
2020-06-20Permit IntKind::Custom to represent Paths instead of just Idents (#1800)Emilio Cobos Álvarez