summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-14Small tests for derive PartialEqZhiting Zhu
2017-08-14Misc tests for derive PartialEqZhiting Zhu
2017-08-14Layout related tests for derive PartialEqZhiting Zhu
2017-08-14Template related tests for derive PartialEqZhiting Zhu
2017-08-14Anonymous related tests for derive PartialEqZhiting Zhu
2017-08-14Complex float related tests for derive PartialEqZhiting Zhu
2017-08-14Function related tests for derive PartialEqZhiting Zhu
2017-08-14Opaque related tests for derive PartialEqZhiting Zhu
2017-08-14Class related tests for derive PartialEqZhiting Zhu
2017-08-14Struct related tests for derive PartialEqZhiting Zhu
2017-08-14Union related tests for derive PartialEqZhiting Zhu
2017-08-14Can derive PartialEq analysisZhiting Zhu
2017-08-14Auto merge of #905 - bkchr:rustfmt, r=fitzgenbors-servo
Adds support for running rustfmt on generated bindings This patch enables bindgen to run rustfmt on generated bindings. Rustfmt is used from the global PATH. Two new command-line arguments are added: 1. --format-bindings: Enables running rustfmt 2. --format-configuration-file: The configuration file for rustfmt (not required). Fixes: #900
2017-08-14Disables --rustfmt-bindgens by defaultBastian Köcher
2017-08-14Improves error handling for rustfmtBastian Köcher
2017-08-14Renames format-* command-line arguments to rustfmt-*Bastian Köcher
The --rustfmt-configuration-file command-line argument automatically activates --rustfmt-bindings.
2017-08-14Fixes compilation warnings with rustc 1.21.0-nightly (13d94d5fa 2017-08-10)Bastian Köcher
2017-08-14Adds support for running rustfmt on generated bindingsBastian Köcher
This patch enables bindgen to run rustfmt on generated bindings. Rustfmt is used from the global PATH. Two new command-line arguments are added: 1. --format-bindings: Enables running rustfmt 2. --format-configuration-file: The configuration file for rustfmt (not required).
2017-08-14Auto merge of #909 - bkchr:union_fix, r=emiliobors-servo
Fixes alignment errors with new Rust union type This fix creates a new private field with the required aligned size. This new private field ensures that the union has the required size. This fixes: #908
2017-08-14Fixes alignment errors with new Rust union typeBastian Köcher
This fix creates a new private field with the required aligned size. This new private field ensures that the union has the required size.
2017-08-14Auto merge of #911 - upsuper:layout-test-name, r=emiliobors-servo
Stablize name of reference and nested combination of ref, ptr, and array
2017-08-14Remove Type::is_valid_identifierXidorn Quan
2017-08-14Auto merge of #892 - tmfink:feature-832-custom-rust-target, r=emiliobors-servo
Re-add --rust-target option to replace --unstable-rust Re-apply commit. Addresses #832 Instead of specifying whether or not to use stable, specify the Rust release to support (one of several stable/beta releases or nightly). The `--unstable-rust` option is still accepted and implies nightly. The definitions of `RustTarget` and `RustFeatures` are created with macros. For each test that uses unions, there is a version that uses the latest stable and 1.0.
2017-08-14Stablize name of reference and nested combination of ref, ptr, and arrayXidorn Quan
2017-08-13Auto merge of #910 - upsuper:package-include, r=emiliobors-servo
Only include necessary files in package We now have various files that are unnecessary for package, including the book, the release note template, and even a 1.3MB PNG file! This change makes us only include the necessary files (source files, build script, and metadata). Using whitelist so that we have fewer items, and it would be harder to regress.
2017-08-14Only include necessary files in packageXidorn Quan
2017-08-13Re-add --rust-target to replace --unstable-rustTravis Finkenauer
Instead of specifying whether or not to use stable, specify the Rust release to support (one of several stable/beta releases or nightly). The `--unstable-rust` option is still accepted and implies nightly. The definitions of `RustTarget` and `RustFeatures` are created with macros. For each test that uses unions, there is a version that uses the latest stable and 1.0. This also fixes the bug where unions were generated with non-Copy fields.
2017-08-13Auto merge of #906 - emilio:stylo-build-woes, r=manishearth,fitzgenbors-servo
ir: Sanitize base names more aggressively This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
2017-08-13ir: Sanitize base names more aggressively.Emilio Cobos Álvarez
This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
2017-08-13tests: Fix clang warning about missing constructor to initialize const member.Emilio Cobos Álvarez
2017-08-11Auto merge of #901 - fitzgen:split-up-ci-into-many-jobs, r=emiliobors-servo
Run many CI jobs in parallel Our CI is performing multiple different jobs: * For every libclang version we support: * With both debug and release profiles: * Generating bindings from our test headers, with and without extra assertions, and asserting there is no diff from the expectations. * Compiling and testing the generated bindings. * Compiling and testing the bindgen-integration crate. * Testing the md book. * Asserting that there aren't any system includes in any of the test headers. * Asserting that all the pub functions have doc comments. We were previously doing these things sequentially for each libclang version. This commit breaks these jobs up explicitly and runs each of them one at a time so that they can each be run in parallel, on different Travis CI machines. r? @emilio
2017-08-11Auto merge of #902 - fitzgen:test-expectations-in-contributing-md, r=emiliobors-servo
Mention the test expectations in CONTRIBUTING.md r? @emilio
2017-08-10Mention the test expectations in CONTRIBUTING.mdNick Fitzgerald
2017-08-10Auto merge of #899 - bkchr:manual_debug_impl, r=fitzgenbors-servo
Implements Debug trait for types which do not support derive Debug For types that do not support derive Debug be implemented automatically by rust, we know can generate implementations of the Debug trait. This code generation is hidden behind the '--force-derive-debug' command-line flag. Should solve: #875 Sorry for the extra noise in lib.rs, codegen/mod.rs etc, that was rustfmt.
2017-08-10Run many parallel CI jobsNick Fitzgerald
Our CI is performing multiple different jobs: * For every libclang version we support: * With both debug and release profiles: * Generating bindings from our test headers, with and without extra assertions, and asserting there is no diff from the expectations. * Compiling and testing the generated bindings. * Compiling and testing the bindgen-integration crate. * Testing the md book. * Asserting that there aren't any system includes in any of the test headers. * Asserting that all the pub functions have doc comments. We were previously doing these things sequentially for each libclang version. This commit breaks these jobs up explicitly and runs each of them one at a time so that they can each be run in parallel, on different Travis CI machines.
2017-08-11Small fixes and improvements to the derive-debug testsBastian Köcher
2017-08-11Renames cli --force-derive-debug to --impl-debugBastian Köcher
2017-08-10Adds ImplDebug trait for creating the Debug trait implementationsBastian Köcher
2017-08-10Let the libclang version being tested be implicitNick Fitzgerald
Our test runner is smart enough to figure out which test expectations to use now.
2017-08-10Stop testing libclang 3.7Nick Fitzgerald
No one intends to make this work. We should focus on new versions of libclang going forward.
2017-08-10Implements Debug trait for types which do not support derive DebugBastian Köcher
For types that do not support derive Debug be implemented automatically by rust, we know can generate implementations of the Debug trait. This code generation is hidden behind the '--force-derive-debug' command-line flag.
2017-08-09Auto merge of #887 - photoszzt:derive_hash, r=fitzgenbors-servo
Can derive hash analysis r? @fitzgen Fix: #876 I haven't enable too much test yet. Enable the option for all tests changes more than 200 of them. I want some input on which test is good to enable or write a new test.
2017-08-09Small dedicated tests for derive HashZhiting Zhu
2017-08-09Misc tests for derive HashZhiting Zhu
2017-08-09Layout related tests for derive HashZhiting Zhu
2017-08-09Template related tests for derive HashZhiting Zhu
2017-08-09Anonymous related tests for derive HashZhiting Zhu
2017-08-09Complex float tests for derive HashZhiting Zhu
2017-08-09Function related tests for derive HashZhiting Zhu
2017-08-09Opaque related tests for derive HashZhiting Zhu